Outils pour utilisateurs

Outils du site


convertir_pdf_en_images

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
convertir_pdf_en_images [2025/09/23 08:33]
47.128.31.242 ancienne révision (2024/04/02 09:12) 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://www.imagemagick.org/script/comma … ptions.php Pour les options voir la doc: http://www.imagemagick.org/script/comma … ptions.php
 +
 +
 +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 /etc/ImageMagick-6/policy.xml
 +You will see the following code snippet at the end of the file.
 +
 +Code à modifier 
 +
 +<!-- disable ghostscript format types -->
 +
 +<policy domain="coder" rights="none" pattern="PS" />
 +<policy domain="coder" rights="none" pattern="PS2" />
 +<policy domain="coder" rights="none" pattern="PS3" />
 +<policy domain="coder" rights="none" pattern="EPS" />
 +<policy domain="coder" rights="none" pattern="PDF" />
 +<policy domain="coder" rights="none" pattern="XPS" />
 +
 +Comment it out in the following format.
 +
 +<!-- code -->
  
convertir_pdf_en_images.1758609183.txt.gz · Dernière modification: 2025/09/23 08:33 de 47.128.31.242