Compare commits
No commits in common. "6fcc6e866c0bd813769b10923561790b2c1ef2a7" and "d0a2f3cceafdb941da99b5035190bd1dc5349155" have entirely different histories.
6fcc6e866c
...
d0a2f3ccea
Binary file not shown.
@ -1,46 +0,0 @@
|
|||||||
To merge (concatenate) pdfs:
|
|
||||||
|
|
||||||
$ pdftk inputs cat output newfile.pdf
|
|
||||||
|
|
||||||
|
|
||||||
To merge all pdfs:
|
|
||||||
|
|
||||||
$ pdftk *.pdf cat output newfile.pdf
|
|
||||||
|
|
||||||
|
|
||||||
To break a pdf into single page files:
|
|
||||||
|
|
||||||
$ pdftk input.pdf burst
|
|
||||||
|
|
||||||
|
|
||||||
To combine parts of two or more files, use handles:
|
|
||||||
|
|
||||||
$ pdftk A=firstfile.pdf B=secondfile.pdf cat A1-7 B1-5 A8 output newfile.pdf
|
|
||||||
|
|
||||||
========================================================================
|
|
||||||
|
|
||||||
To edit metadata is a multistep process:
|
|
||||||
|
|
||||||
1) Dump the pdf metadata:
|
|
||||||
|
|
||||||
$ pdftk input.pdf dump_data metadata.txt
|
|
||||||
|
|
||||||
2) Edit the metadata (Geany appears to work), adding:
|
|
||||||
|
|
||||||
InfoBegin
|
|
||||||
InfoKey: Author
|
|
||||||
InfoValue: Kenneth John Odle
|
|
||||||
InfoBegin
|
|
||||||
InfoKey: Title
|
|
||||||
InfoValue: Journal #42
|
|
||||||
|
|
||||||
(For "Title" enter whatever you want to see in the document's title bar as you read it.)
|
|
||||||
|
|
||||||
3) Update the metadata in the pdf file:
|
|
||||||
|
|
||||||
$ 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/
|
|
Loading…
Reference in New Issue
Block a user