www.accesspdf.com/pdftk -> www.accesspdf.com/pdftk/
Thanks for supporting pdftk-- Sid Search PDF Hacks Put PDF Hacks to the test: PDF Hacks Full-Text Search Search Or, search all Safari titles. Full-Text Book Search Search What's New STORIES No new stories COMMENTS last 48 hrs No new comments LINKS last 2 wks No recent new links Poll What is your PDF platform?
If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a command-line tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: * Merge PDF Documents * Split PDF Pages into a New Document * Decrypt Input as Necessary (Password Required) * Encrypt Output as Desired * Fill PDF Forms with FDF Data and/or Flatten Forms * Apply a Background Watermark * Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels * Update PDF Metadata * Attach Files to PDF Pages or the PDF Document * Unpack PDF Attachments * Burst a PDF Document into Single Pages * Uncompress and Re-Compress Page Streams * Repair Corrupted PDF (Where Possible) Pdftk allows you to manipulate PDF easily and freely. It does not require Acrobat, and it runs on Windows, Linux, Mac OS X, FreeBSD and Solaris.
Andrew Abyzov on: Friday, July 08 2005 @ 07:18 AM It turns out, that PDFTK doesn't work with PDF forms of version 16 They are filled without an error, but the fields appear empty in Acrobat 70 The older Acrobat versions complain about the newer PDF version, but display the contents of the fields.
Pdftk by: Anonymous on: Friday, July 08 2005 @ 03:48 AM I wanted to print the front pages ONLY of patents downloaded as PDFs. I couldn't work out how to do this with PDFTK in one pass, so I did as follows. COM DOS box (not CMDEXE) under Windows 2000 and assumes a directory c:\zdir that is clean apart from the particular PDFs under consideration. It uses Horst Schaeffer's wonderful LMOD (List MODifier) to make the batch files. The idea is to use PDFTK to split the first page only from each pdf, using LMOD to give them unique serial numbers, then a second pass with PDFTK to reassemble the new files into a single one, followed by a call to Acrobat Reader's command line function for printing (still have to press the OK button manually). hope line wrapping and your system's odd habit of dropping backslashes doesn't screw things up too much.
Sid Steward on: Tuesday, June 21 2005 @ 10:27 AM Some pdftk users process hundreds of files. Performing this work on a Windows machine can yield unexpected results. The problem arises from the Windows command-prompt shell, not pdftk.
This short filename might end up matching a wildcard expression, even when the long filename does not. When using pdftk, the result is that you end up with more input files than you wanted. This article offers a couple workarounds and then describes the case where this problem arose.
While merging data into a PDF form is old news to pdftk users, this example has an interesting twist. It uses pdftk's dump_data_fields operation to discover exactly what the PDF form wants, then creates a dynamic HTML form using this information. Ie, it automatically creates an HTML form to match your PDF form. This HTML form is bare-bones, but it makes a good foundation for your web interface. It helps if you fill in the PDF fields' "Short Description," available via Acrobat's field properties dialog. My MacTech article described the process in detail and introduced the reader to related topics, such as PDF forms, pdftk, and the FDF format. This artcile offers some tips on getting started and shows how to discover form field data using pdftk.
Forge_fdf is a little PHP script I created for casting form data into the FDF syntax. This is handy for filling online PDF forms automatically, or for filling forms using pdftk.
Pdftk by: Anonymous on: Thursday, April 21 2005 @ 08:22 AM I would like to split a large pdf file into several small files based on the account no on the page and would be able to give custom file name to each pdf.
Its output uses the the formfeed (0x0C) character to show page breaks. Scan the output from pdftotext for the account number, or possibly some other distinctive feature, to find where to split the PDF. Then create a pdftk command-line to perform the split and output the new file to your custom file name.
Sid Steward on: Thursday, April 07 2005 @ 01:04 PM PDF has features for controlling how a document first appears in the viewer. These include page layout settings: Single Page, Continuous, and Continuous Facing Pages. These also include page mode settings: Show Bookmarks, Show Thumbnails, and Full Screen. Pdftk does not currently have built-in features for setting these options, but you will find they are easy to set using a sed script.
My article about editing PDF using sed will give you the background on this technique. Here I will desciribe how it applies to page layout and page mode settings.
Sid Steward on: Friday, February 04 2005 @ 08:52 AM Here is an email I received today that describes a common PDF problem. I sketched out a solution, and some kind folks have offered scripts. In the old HP 6350 scanner (with sheet feeder), they have included the HP Precision scan program that allows user to scan two-side paper in two passes. Specifically after scanning all pages in other side, you will be asked to turn over the whole pile and scan the back side, ie first pass pages 1 3 5 7 second pass pages 8 6 4 2 Combined output pages 1 2 3 4 5 6 7 8 I wonder if your master piece "pdftk" can be used to serve this purpose, ie Taking the first page from PDF A, then the last page from PDF B; then the 2nd page from PDF A, and then the (n-1) page from PDF B..
Sid Steward on: Tuesday, January 25 2005 @ 10:11 AM Pdftk is a command-line program, so it helps to know command-line (a/k/a "shell") programming. Especially when you want to do something that pdftk doesn't know how to do by itself. A good example of this is using pdftk to combine PDF in a special order. This article describes how to use the Windows Command Prompt batch language to combine PDFs by file creation date. I also show how to do this using the bash shell which comes with MSYS.
|