pdftk (PDF ToolKit) is a multiplatform open source tool for manipulating PDF documents.

learn more… | top users | synonyms

16
votes
7answers
24k views

How to merge multiple PDF files onto one page with pdftk?

I have a range of PDF files 1.pdf, 2.pdf, etc. that I would like to merge into one file, with all the PDFs tiled on one page. Currently, I have tried pdftk to merge these files, but they are put on ...
12
votes
2answers
10k views

How to remove watermark from pdf using pdftk?

I need to remove some stupid email watermark that expands across all pages of a public domain book. I looked at pdftk man page and some examples but still can not figure out how to remove the ...
7
votes
1answer
4k views

Use Ghostscript, but tell it to not reprocess images?

I have a PDF that has already compressed and somewhat artifact-y images, and I'm using Ghostscript to prepend a title page to that PDF. However, I cannot find any way to tell GS to just use the ...
4
votes
2answers
750 views

unix tools to merge pdf [duplicate]

I'm looking for an alternate to ghostscript to merge pdf tools. We generally have print jobs containing more than 3000 documents, which are to be merged into a pdf. Ghostscript does this whole ...
3
votes
1answer
445 views

Creating a batch OR .bat file to linearize and merge PDFs using QPDF.exe

I am trying to create a batch OR .bat file that will linearize MULTIPLE PDF files. I already have a script I commandeered that uses PDFTK that sends PDFs to the 'sendto' folder where they are ...
3
votes
2answers
186 views

Remove text from pdf

I have a pdf file with some text on each page which I would like to remove. The text is matched by a regex and I think it comes in one block of the pdf. I have used pdfedit to select and delete the ...
2
votes
1answer
110 views

ImageMagick: wrong size when converting PDF to JPG

I want to apply some improvements (change brightness, contrast, etc) to a pdf, to make it more readable, so I chose ImageMagick and pdftk. I used the following command to split the pdf into several ...
2
votes
2answers
2k views

Remove PDF margins and print 2 pages per side

I print out a lot of pdf articles, and I'd like to use less paper by printing 2 pages per side. But due to the large margins---both from the original pdf file and added by the printing process---the ...
2
votes
1answer
1k views

How to add text at bottom of pages using pdftk?

I am wondering ho to put a link text at the bottom of all pages of a pdf file using pdftk. Appreciate your help.
2
votes
2answers
470 views

How can I append two PDFs that have links

My problem I have two PDFs which I would like to merge to one PDF. The first one was generated with LaTeX and has links to the chapters, the second one is a GUI-draft with links created with ...
2
votes
1answer
99 views

Batch file to process the combining of 2 sets of pdf files together in a directory

I am looking for a script that can do the following: I have 500 pdf files with naming convention: SC####.pdf 500 pdf files with naming convention: AB####.pdf I want a batch file to check if there ...
1
vote
2answers
1k views

How do I duplicate pages within PDF files automatically?

I have a lot of PDF files with 1 to 4 pages each. I need a solution which automatically generates a new file for each of these files. The new files should contain the content of the original files ...
1
vote
1answer
875 views

pdftk: multiple page ranges

I want to grab a few pages from a large (600+ pgs) document using pdftk. How can I do this? example: suppose the pages I need are 300, 307-310, and 315-318 from a file named "bloated.pdf". This ...
1
vote
1answer
2k views

How can I stamp every page of a pdf except the first one?

I have two PDF files; one is a document and the other is a single page containing a graphic. So far I have been using pdftk to stamp the graphic onto the document like so: pdftk document.pdf stamp ...
1
vote
1answer
143 views

Batch file to combine pdf files in alphabetical order

I want to create a batch file to combine selected pdf files in alphabetical order. Currently I have the following script: @echo off setlocal enabledelayedexpansion FOR %%A IN (%*) DO (set ...
1
vote
2answers
155 views

How do I 'unbook' a pdf [duplicate]

Possible Duplicate: How can I split a PDF's pages down the middle? I have a pdf file that was made into a booklet format. It is meant to print on A4 paper in landscape orientation; here ...
1
vote
1answer
386 views

Merge pdf and remove pages in one pass

I'd like to concatenate pdf documents without loosing any information (image resampling etc.). I only want to do lossless compressions, consolidate fonts etc. Before merging, I'd like to remove the ...
1
vote
1answer
662 views

PDFTK extract all pages from all pdf's output

I'm trying to extract all pages of several pdf's at the same time. Now it does work with: for %%I in (*.pdf) do "pdftk.exe" "%%I" burst But I don't get all the pages, because for every new document ...
1
vote
4answers
131 views

How create single pdfs out of one automatically? [duplicate]

I have a pdf file containing multiple pages. I could use a script that copies every single page out of this file into a new file. E.g. 40 pages in one file in, out: 40 files each 1 different page
1
vote
0answers
206 views

How to extract all info on PDF bookmarks using GhostScript?

Is there a method of dumping all info on the bookmarks of a PDF using GhostScript? With PDFtk I could use pdftk in.pdf dump_data, but is it possible to do it with GS? I have a PDF with bookmarks ...
1
vote
3answers
774 views

fit multiple pdf pages to one

Is it somehow possible to "zoom out" a multi-page PDF to fit all pages to one via command line (must work under Linux) e.g. I have a PDF generated with XSL:FO/FOP with a table (the red one in the ...
1
vote
0answers
78 views

How to remove watermark from pdf using pdftk? [closed]

I need to remove some stupid email watermark that expands across all pages of a public domain book. I looked at pdftk man page and some examples but still can not figure out how to remove the ...
1
vote
1answer
142 views

pdftk issue after updating Ubuntu from 9.04 to 9.10

We upgraded our server to 9.10 from 9.04 the other day, and it all went well except for one rather important program. We're using pdftk to automatically generate filled out pdf forms. On 9.04, it ...
0
votes
1answer
631 views

What free tool can be used to password-protect .pdf files without displaying password during entry?

What is a "good" tool to encrypt (password protect) .pdf files? (without being required to buy additional software; the protection can be created under linux but the password query should work on ...
0
votes
1answer
53 views

What is the maximum length of a PDF document password?

I would like to know what is the maximum length of a PDF document password. I want to know this, for all PDF document versions and encryption modes. For example 40bit, 128bit, 256bit etc.
0
votes
1answer
30 views

pdftk under Tomcat - permissions for generated report file

I have a server with Ubuntu 12.04 and I have a Servlet under tomcat that is used to split PDF files. When the file is uploaded to the Servlet, It opens an external process (using commons-exec) and ...
0
votes
1answer
144 views

Resize PDF pages and expand white background

What I Have I have a PDF containing a series of photos. Each photo occupies an entire A4-sized page. That is, each page of the PDF contains 1 photo, and there is no border/background/canvas showing ...
0
votes
1answer
708 views

pdftk: Compressing a bunch of PDFs en masse/in batch while keeping the filenames?

I have a rather simple problem. I have a lot of PDFs that I want to compress, all grouped by college class. I don't have the time or energy to manually run the compress command when I know I can ...
0
votes
0answers
92 views

Batch removal of watermark from a pdf using pdftk

Is there any script available or possible to remove a specific and a very large watermark using python. How to remove watermark from pdf using pdftk? I followed everything in the above link but i've ...
0
votes
0answers
66 views

remove image from pdf document

Is it is possible to remove a specific image from a 1 page document using pdftk? Have 1000+ documents in a directory and need a quick way to remove the same unwanted image from every document.
0
votes
0answers
111 views

How to remove text label using pdftk in command similar to remove watermarktextstring

Is there any simple command that is similar to @Dingo's answer in How to remove watermark from pdf using pdftk? to remove some added text label in a PDF file, e.g., the text can be www.blahblah.com ...
0
votes
1answer
554 views

Installing pdftk on Amazon EC2 Linux Instance

I am having trouble installing pdftk on an amzn-ami-2011.09.2.x86_64-ebs (ami-953b06e1) instance. Since pdftk is not in the list of available packages I have tried to build it from source but failed ...
0
votes
0answers
154 views

tag cloud search of text in linux

a lot of times i have to search through scientific papers that are on my computer. i think having a tagcloud would help. is there a program that creates a tagcloud picture in ubuntu? ideally i would ...