Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.27 KB

File metadata and controls

55 lines (40 loc) · 1.27 KB

pdf manipulation

pdftk

Useful tool to manipulate pdfs. For example, extracting page 22-36 from a pdf, can be done by typing

pdftk A=input_file.pdf cat A22-36 output output_file.pdf

Splitting a pdf file into one file for each page can be obtained by

pdftk file.pdf burst

For more cool stuff to do with pdftk, check out this

Extracting metadata

  1. Create a info dictionary

    pdftk new.pdf cat output new_w_info.pdf
    
  2. Get the metadata

    pdftk old.pdf dump_data > in.info
    
  3. Edit the metadata

  4. Add the metadata (with the bookmarks)

    pdftk new_w_info.pdf update_info in.info output all_works.pdf
    

Edit page numbering

See the answers at

http://superuser.com/questions/232553/how-to-change-internal-page-numbers-in-the-meta-data-of-a-pdf

Making a pdf annotationable

qpdf -decrypt test.pdf editable.pdf

On Windows, Adobe Pro can perform the same features under tools -> permissions. Note: that this deletes the chapter bookmarks, and can convert some pages to .png.