Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
convertir_pdf_en_images [2024/03/28 22:06] 47.128.17.131 ancienne révision (2024/03/24 02:24) restaurée |
convertir_pdf_en_images [2025/11/01 19:43] (Version actuelle) 47.128.36.102 ancienne révision (2024/04/06 14:18) 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 --> | ||