Format PDF

De dieudo.fr
Aller à la navigation Aller à la recherche

Réduire le poids des images dans un fichier PDF

Extrait : I was able to make a slight variation on your command successful using the -r300 option from @drN The -r option allows you to set the output resolution in the pdf as well as png.

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default \
    -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages \
    -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf

Créer un sommaire au format PDF

Au moment de l'enregistrement depuis un éditeur de texte

  1. Dans la boîte de dialogue Enregistrer sous , sélectionnez Options.
  2. Cochez la case Étiquettes de structure de document pour l’accessibilité , puis sélectionnez OK.

À partir d'un fichier PDF existant

Extrait :

In the case of the rust book you can use pdf.tocgen (Example:

python -m pdfxmeta -p 8 -a 1 ../The\ Rust\ Programming\ Language.pdf "Getting Started" > data.toml
python -m pdfxmeta -p 3 -a 2 ../The\ Rust\ Programming\ Language.pdf "Who Rust Is For" >> data.toml
python -m pdfxmeta -p 4 -a 3 ../The\ Rust\ Programming\ Language.pdf "Students" >> data.toml
python -m pdftocgen ../The\ Rust\ Programming\ Language.pdf <data.toml >data.toc
python -m pdftocio ../The\ Rust\ Programming\ Language.pdf <data.toc

Autres pistes