User Tools

Site Tools


pdftk_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pdftk_notes [2022/07/21 02:45] – [store a pdf without password] rajupdftk_notes [2024/02/15 04:34] (current) – [replace a page with another pdf] raju
Line 1: Line 1:
 +
 +
 +==== extract some pages ====
 +To get pages 11-19 (inclusive on both sides) of a pdf file
 +  pdftk A=in.pdf cat A11-19 output out.pdf
 +
 +Tested using
 +<code>
 + % pdftk --version
 +pdftk port to java 3.3.2 a Handy Tool for Manipulating PDF Documents
 +</code>
 +
 +==== replace a page with another pdf ====
 +To replace pg-16 of a pdf with another pdf. Assume that the later consists of only one single page.
 +
 +<code>
 +pdftk A=initial.pdf B=insertAsPg16.pdf cat A1-15 B1 A17-end output final.pdf
 +</code>
 +
 +Tested using
 +
 +<code>
 +% pdftk --version
 +
 +pdftk 2.01 a Handy Tool for Manipulating PDF Documents
 +Copyright (C) 2003-13, Sid Steward - Please Visit: www.pdftk.com
 +This is free software; see the source code for copying conditions. There is
 +NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 +</code>
 +
 ==== rotate pages by 180 degrees ==== ==== rotate pages by 180 degrees ====
 <code> <code>
Line 41: Line 71:
  
 See also: https://superuser.com/questions/600877/how-do-i-duplicate-pages-within-pdf-files-automatically - has a script to duplicate it by page (as in 1,1,2,2,...) See also: https://superuser.com/questions/600877/how-do-i-duplicate-pages-within-pdf-files-automatically - has a script to duplicate it by page (as in 1,1,2,2,...)
 +
 +==== debian package ====
 +  * pdftk-java
 +
 +==== external links ====
 +  * Enricon Zini talks about using pdfk and inkscape to add signatures to pdf documents - http://www.enricozini.org/blog/2016/pdftk-inkscape/
  
pdftk_notes.1658371525.txt.gz · Last modified: 2022/07/21 02:45 by raju