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

learn more… | top users | synonyms

1
vote
0answers
6 views

pdftk. Inserting a single page pdf ever other page

I have a pdf that can be any number of pages and each page is different. How can I insert a second pdf that is only 1 page in length into every other page of the first pdf. Because its only 1 page, ...
0
votes
0answers
14 views

PDF Batch Process Edit Bookmark Properties - Acrobat Pro

I created bookmarks in pdf using pdftk. But all the bookmarks are set to zoom to fit. I want to edit the properties of all the bookmarks to zoom to width. I have acrobat pro. Please help.
0
votes
1answer
32 views

Merging PDF files with PDFTK

I have a directory with PDF files that looks like this: 2016_AAA_SomeRandomText1.pdf 2016_BBB_SomeRandomText1.pdf 2016_AAA_SomeRandomText2.pdf 2016_BBB_SomeRandomText2.pdf ...
0
votes
1answer
21 views

How to view PDF in Artbox?

I have a PDF, which by default it displays the pages in Trimbox/Bleedbox sizes. But if I "crop" something, clearly you can see that there is an Artbox outside. How can I set the default display to ...
0
votes
1answer
37 views

Read pdf with minimum white margin

I have a pdf file which originates from MS Word (*.docx). I want to read / print it out with minimum white margin. I have tried converting the pdf file back to *.docx. Although I can edit the white ...
0
votes
0answers
10 views

Better workflow for doc+labeled attachments as PDF?

I often write a document using a word processor, whose output needs to go into a PDF, but after it in that PDF I need several sequences of either other PDF documents or scanned documents, each of ...
0
votes
0answers
95 views

pdftk flatten loses fillable field data

I'm trying to work out a solution to flatten PDFs with already-filled out fields on a Linux command line. I was messing around with GhostScript at first, but I found that tended to convert all the ...
0
votes
0answers
31 views

Export PDF Bookmarks, Edit Find Replace and Import to Replace?

I'd like to do the following: Export PDF Bookmarks & its structure as structured data - Tree, XML, XLS or CSV Do a bunch of edits, find, replace etc. Primarily Text label changes No major ...
2
votes
1answer
118 views

both pdftk and qpdf fail at protecting my documents

From pdftk man page, I should be able to protect a pdf document from content copy, printing, snapshots with: pdftk 1.pdf output 1.128.pdf owner_pw foopass But it fails, I can do any of them ! I ...
1
vote
0answers
125 views

remove pdf stamp that has been added by pdftk

Question: Can you remove a stamp added with pdftk, using Linux command line tools? Motivation for the question: I have tens of thousands of scanned pages, in hundreds of pdf files. I would like to ...
2
votes
1answer
702 views

No output from pdftk

I am trying to add a background to a PDF with pdftk: $ pdftk ./sources/Skills.pdf background ./Background.pdf output test.pdf verbose Command Line Data is valid. Input PDF Filenames & Passwords ...
-1
votes
1answer
64 views

How to add one specific page (PDF file) to a list of existing PDF files?

I have 400 different pdf files in one folder and need to add one specific page (1 other pdf file, page.pdf) automatically to all of these 400 files, always at the end. How can I do that?
2
votes
0answers
1k views

Merge two pdf files side by side in command line

I have got two pdf files with same number of pages and want compare each page with the corresponding page in the other file. For this I would like to merge say page 1 of File1.pdf with page 1 of File2....
1
vote
1answer
230 views

Combining multiple pdf fragments to one page - top aligned without margin

I have multiple small fragments as PDF file, depending on user input these fragments has to be combined to one page. pdfjam and/or pdfnup do this, and works. However, the default layout is according ...
-1
votes
1answer
171 views

How do I open and use pdftk?

pdftk was installed using sudo apt-get install pdftk but how do I open and use this software? Please help me find it and open it. I have Lubuntu 14.0.
3
votes
1answer
971 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 ...
1
vote
1answer
375 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 command=...
1
vote
1answer
477 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
68 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 ...
1
vote
1answer
2k 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 ...
0
votes
0answers
297 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.
3
votes
1answer
985 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 combined....
0
votes
1answer
1k 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 ...
3
votes
2answers
800 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 ...
1
vote
1answer
1k 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
184 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
5answers
3k 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 ...
2
votes
2answers
6k 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 ...
4
votes
2answers
1k 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
0answers
410 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
1answer
4k 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 ...
2
votes
2answers
1k 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 Balsamiq....
1
vote
1answer
1k 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 ...
1
vote
3answers
1k 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 ...
2
votes
1answer
113 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 ...
2
votes
1answer
2k 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.
20
votes
3answers
19k 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 ...
1
vote
0answers
85 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 ...
0
votes
1answer
825 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
2answers
1k 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 ...
1
vote
2answers
177 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 ...
20
votes
7answers
52k 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
1answer
7k 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 ...
0
votes
0answers
172 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 ...
1
vote
1answer
151 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 ...
3
votes
1answer
2k 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 doesn'...