![]() Rotate pdf documents or pages gs -o rotated.pdf -sDEVICE=pdfwrite -c " setpagedevice" -f input.pdf This command merges file1.pdf, file2.pdf and file3.pdf into a single PDF named merged.pdf. Merge PDF documents gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf file1.pdf file2.pdf file3.pdf Uncompress and re-compress page streams pdftk input.pdf output uncompressed.pdf uncompress This will split input.pdf into individual pages and save them as page_0001.pdf, page_0002.pdf, and so on. Burst a PDF document into single pages pdftk input.pdf burst output page_%04d.pdf This will extract all attachments from input.pdf and save them in a directory called attachments. Unpack PDF attachments pdftk input.pdf unpack_files output attachments This will attach file1.pdf and file2.pdf to page 3 of input.pdf and save the result as with_attachments.pdf. Attach files to PDF pages or PDF documents pdftk input.pdf attach_files file1.pdf file2.pdf to_page 3 output with_attachments.pdf You can also use update_info_utf8 to update the metadata using UTF-8 encoding. This will update the metadata of input.pdf using the data in metadata.txt and save the result as updated.pdf. Add/update PDF metrics, bookmarks, or metadata pdftk input.pdf update_info metadata.txt output updated.pdf This will extract the metrics, bookmarks, and metadata of input.pdf and save them in a text file called report.txt. Report PDF metrics, bookmarks, and metadata pdftk input.pdf dump_data output report.txt This will apply the PDF file watermark.pdf as a background watermark on every page of input.pdf and save the result as stamped.pdf. Apply a background watermark or a foreground stamp pdftk input.pdf stamp watermark.pdf output stamped.pdf This will generate a data stencil (in FDF format) for the PDF form in form.pdf and save it as data.fdf. Generate PDF data stencils from PDF forms pdftk form.pdf generate_fdf output data.fdf To flatten the filled form, add the option flatten at the end of the command. This will fill the PDF form in form.pdf with the data in data.xfdf and save the result as filled.pdf. Fill PDF forms with X/FDF Data and/or Flatten Forms pdftk form.pdf fill_form data.xfdf output filled.pdf This will decrypt or remove PDF password of the input PDF file input.pdf using the password password and save the result as decrypted.pdf. Remove PDF password pdftk input.pdf input_pw password output decrypted.pdf This will encrypt or protect pdf by password of the input PDF file input.pdf with the owner password password and save the result as encrypted.pdf. Protect PDF by Password pdftk input.pdf output encrypted.pdf owner_pw password You can adjust the rotation angle as needed. This will rotate all pages in the input PDF file input.pdf by 180 degrees and save the result as rotated.pdf. Rotate PDF documents or pages pdftk input.pdf cat 1-endS output rotated.pdf This will merge file1.pdf, file2.pdf, and file3.pdf into a single PDF file called merged.pdf. Merge PDF documents pdftk file1.pdf file2.pdf file3.pdf cat output merged.pdf It’s a popular tool among Linux users, especially for batch processing and automating PDF workflows. pdftk allows users to merge, split, rotate, encrypt, decrypt, and perform other advanced PDF manipulation tasks. It’s available for Linux, Windows, and macOS platforms. Pdftk (PDF toolkit) is a command-line tool for manipulating PDF documents. Frequently Asked Questions by New Linux Users.Create a table of contents (TOC) for a PDF document.Merge multiple PDF files into a single document with bookmarks.Extract specific pages or sections from a PDF document.Flatten filled-out PDF forms to make them uneditable.Fill out PDF forms with user-provided data.Stamp a watermark or text onto a PDF document.Decrypt and encrypt individual PDF files.Rotate individual pages in a PDF document.Split PDF documents into separate pages or sections.Attach files to pdf pages or pdf documents:.Generate PDF data stencils from PDF forms.Fill PDF Forms with X/FDF Data and/or Flatten Forms.Uncompress and re-compress page streams / repair corrupted pdf.Attach files to pdf pages or pdf documents.Add/update pdf metrics, bookmarks or metadata.Report pdf metrics, bookmarks and Metadata.Uncompress and re-compress page streams.Attach files to PDF pages or PDF documents.Add/update PDF metrics, bookmarks, or metadata.Report PDF metrics, bookmarks, and metadata.Apply a background watermark or a foreground stamp. ![]() Fill PDF forms with X/FDF Data and/or Flatten Forms. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |