Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
|
convertir_pdf_en_images [2026/04/06 18:33] 216.73.216.173 ancienne révision (2023/05/12 21:48) restaurée |
convertir_pdf_en_images [2026/04/06 18:46] (Version actuelle) 216.73.216.173 ancienne révision (2024/03/27 03:25) restaurée |
||
|---|---|---|---|
| Ligne 11: | Ligne 11: | ||
| Pour les options voir la doc: http:// | Pour les options voir la doc: http:// | ||
| + | |||
| + | |||
| + | sudo apt install imagemagick | ||
| + | Install ImageMagick | ||
| + | |||
| + | Once it is installed, You can convert your pdf files to images with the following command. | ||
| + | |||
| + | convert sample.pdf output_image.jpg | ||
| + | Convert PDF to PNG using imagemagick | ||
| + | |||
| + | You can see that PDF file conversions are not authorized by policy. If you get this output, go to the Imagemagick policy XML file with the following command. | ||
| + | |||
| + | sudo nano / | ||
| + | You will see the following code snippet at the end of the file. | ||
| + | |||
| + | Code à modifier | ||
| + | |||
| + | <!-- disable ghostscript format types --> | ||
| + | |||
| + | <policy domain=" | ||
| + | <policy domain=" | ||
| + | <policy domain=" | ||
| + | <policy domain=" | ||
| + | <policy domain=" | ||
| + | <policy domain=" | ||
| + | |||
| + | Comment it out in the following format. | ||
| + | |||
| + | <!-- code --> | ||