Skip to content

Commit

Permalink
tweak: manipulations-fichiers-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Feb 22, 2025
1 parent c24fd15 commit 45a9e4c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sources/linux/manipulations-fichiers-pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ Pour fusionner plusieurs fichiers PDF en un seul :
:language: shell
```

## Extraire

Pour extraire une ou plusieurs pages d’un fichier PDF :

```{literalinclude} snippets/manipulations-fichiers-pdf.sh
:lines: 44
:language: shell
```

## Optimiser

`GhostScript` permet de réduire grandement le poids du fichier final :
Expand Down Expand Up @@ -136,6 +145,9 @@ Générer un nouveau PDF comportant les nouvelles méta-données :

## 📜 Historique

2025-02-22
: Ajout de la section [Extraire](#extraire).

2024-08-30
: Ajout de la section [Sécuriser](#securiser).
: Ajout des informations sur Stirling-PDF dans l’introduction.
Expand Down
2 changes: 2 additions & 0 deletions sources/linux/snippets/manipulations-fichiers-pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ pdftk 'FILE_SOURCE.pdf' dump_data_utf8 output 'metadata.txt'
pdftk 'FILE_SOURCE.pdf' update_info_utf8 'metadata.txt' output 'NEW_FILE.pdf'

pdftk 'FILE_SOURCE.pdf' input_pw PROMPT output 'NEW_FILE.pdf'

pdftk 'FILE_SOURCE.pdf' cat 2-5 output 'NEW_FILE.pdf'

0 comments on commit 45a9e4c

Please sign in to comment.