From e9e297aa0f694f59467ac837277bb3978b560240 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Wed, 8 Sep 2021 20:35:56 -0400 Subject: [PATCH] Additional changes --- pdftk basic usage.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pdftk basic usage.md b/pdftk basic usage.md index 43e9b59..a1c4e85 100644 --- a/pdftk basic usage.md +++ b/pdftk basic usage.md @@ -25,7 +25,9 @@ To edit metadata is a multistep process: 1) Dump the pdf metadata: - $ pdftk input.pdf dump_data metadata.txt +``` +$ pdftk input.pdf dump_data metadata.txt +``` 2) Edit the metadata (Geany appears to work), adding: @@ -42,12 +44,14 @@ InfoValue: Journal #42 3) Update the metadata in the pdf file: - $ pdft input.pdf update_info metadata.txt output.pdf +``` +$ pdft input.pdf update_info metadata.txt output.pdf +``` Note that you must write to another file, as pdftk cannot overwrite the original file. Thus, make the file you save the scan as different than what you want the final file to be named. -See https://sejh.wordpress.com/2014/11/26/changing-pdf-titles-with-pdftk/ +See [https://sejh.wordpress.com/2014/11/26/changing-pdf-titles-with-pdftk/](https://sejh.wordpress.com/2014/11/26/changing-pdf-titles-with-pdftk/) # Converting to Double Sided Scans without a Duplexer @@ -61,7 +65,9 @@ This gives you pages 1 3 5 7 9 Scan the reverse sides: 001b.pdf This gives you pages 10 8 6 4 2 - $ pdftk A=001a.pdf B=001b.pdf shuffle A1-5 B5-1 output 001.pdf +``` +$ pdftk A=001a.pdf B=001b.pdf shuffle A1-5 B5-1 output 001.pdf +``` 001.pdf should now be in the order: 1 2 3 4 5 6 7 8 9 10