Questions tagged [pdftk]

PDFtk Free is our friendly graphical tool for quickly merging and splitting PDF documents and pages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Remove Adobe protection from PDF

When I open a PDF it prompts for a username and password. If I open it with any other program than Adobe it says only Adobe can open this PDF. I am not a fan of being limited to Adobe and we have ...
Adrian's user avatar
  • 101
0 votes
1 answer
56 views

Can't open pdftk-encrypted PDF in Acrobat

When I encrypt a PDF using pdftk under Ubuntu 22.04, I cannot decrypt it using Adobe Acrobat under Windows. Following instructions here, I encrypt a PDF using pdftk: pdftk input.pdf output output.pdf ...
Bolio's user avatar
  • 307
3 votes
1 answer
309 views

Why does installing "pdftk-java" change root certificate authority? Is this bad?

new ubuntu user here. I installed pdftk-java using sudo-apt, and it changed a lot of my root certificate authorities. Is this bad? I don't understand why this root certificate authority is needed by a ...
Daycent's user avatar
  • 83
2 votes
0 answers
962 views

pdftk stopped working with error "Unable to find file"

Since some time (possibly a month or two), pdftk stopped working on my system (Ubuntu 18.04, AFAIK all latest updates applied). I now unconditionally get the error Error: Unable to find file: pdftk A=...
Cal-linux's user avatar
  • 123
0 votes
0 answers
249 views

Allow open and print pdf file without asking a password but prevent editing content of the file using PDFTK?

I'm using pdftk to manage pdf files on a website , now what I'd like to know if is it possible to allow open and print pdf files without asking a password but prevent editing content of file using ...
hous's user avatar
  • 225
0 votes
0 answers
166 views

Merge images to PDF with xconvert-like options

I'm trying to merge images to PDF. Usually the following website is what I use. https://www.xconvert.com/merge-image-to-pdf Given the number of images, I'm thinking of automating the conversion with a ...
Gijs J's user avatar
  • 1
1 vote
1 answer
614 views

pdftk works in home folder but not in www

I have installed pdftk using snap in Ubuntu 18.04: sudo snap install pdftk In my home folder pdftk works fine: root@localhost:/home# a.pdf output secure.128.pdf owner_pw 123456 root@localhost:/home# ...
hous's user avatar
  • 225
1 vote
1 answer
3k views

Add watermark to all PDF pages

Please tell me how to use the command line correctly in this case. And so the task, there are a lot of pdf files on all pages of these files I need to add a watermark. I made watermark in pdf and it ...
Oleksandr_I's user avatar
5 votes
0 answers
385 views

How do I add a video to a PDF file?

Adobe Acrobat allows to embed videos in PDF files. Is there a way to do this with a free tool like pdftk? I have several slides in my pdf and I would like to add an mp4 or webm file among those slides....
colin's user avatar
  • 151
1 vote
1 answer
285 views

pdftk move page 1 to the end

I am looking for the correct script to move the first page to the end of a PDF file, regardless of how many pages the file has. It is unknown how many pages will be in each file but we want to move ...
Knoots's user avatar
  • 11
3 votes
1 answer
3k views

How can I merge numbered pdf files with pdftk?

I have to merge a lot of pdf files and I numbered them from 1 to 100 or more. I want to merge specific files. Can I merge them doing something similar to this? pdftk [1-20].pdf cat output out.pdf
Ram's user avatar
  • 51
2 votes
2 answers
2k views

Combine each two pages to single from pdf book

I have such a pdf opened by Okular with Facing pages view mode (center first page). I want to get all the two-pages view pictures, so manually crop them one by one. How could extract them to pictures ...
Wizard's user avatar
  • 2,891
2 votes
0 answers
101 views

How to highlight pdf based on pattern matching from ubuntu terminal?

Aware that pdf can be read into the terminal using The Poppler Developers tools. One of the tools which helps in checking for a pattern in the pdf and then printing in the terminal is pdfgrep ...
Praveen Kumar-M's user avatar
1 vote
2 answers
2k views

PDFTK cannot be run by www-data

I need to use PDFTK. It works when I use it in terminal as root, but when I try to use it with www-data I'm consistently getting a permission error. When switching to www-data: sudo -u www-data sh ...
Andrewboy's user avatar
  • 119
3 votes
2 answers
6k views

Split PDF into Multiple Page Ranges with Multiple Outputs

I need to split one PDF file into multiple PDFs, but using specific page ranges. This CPDF command will split multiple page ranges, but merge them into a single PDF file. cpdf in.pdf 1-3,90-97,112-...
whitewings's user avatar
0 votes
0 answers
2k views

How to automate PDF processing (crop & reduce size) without breaking barcode? [duplicate]

I regularly receive shipping address labels in pdf format from the post. The pdf document containing the address label is formatted in a very stupid way taking up the entire A4, while just A6 would be ...
Ossi Viljakainen's user avatar
1 vote
1 answer
710 views

PDFTK: combining files as root user

I have a website which uses PDFTK. My site allows users to send PDF files via a form, then, at the click of a button, launches a combination of all files to create one. When sending my files, my ...
Lucie's user avatar
  • 11
0 votes
2 answers
927 views

PDFTK library missing Apache Common Lib

I set up pdftk on Ubuntu 18.04 using the following instructions: sudo add-apt-repository ppa:malteworld/ppa sudo apt update sudo apt install pdftk taken from a previously asked Askubuntu question. I ...
regularlearner's user avatar
1 vote
1 answer
3k views

pdftk snap in 18.04 not accepting commands

following the simple instructions in this answer: https://askubuntu.com/a/1048975 I installed pdftk as a snap on an ubuntu 18.04 VM. (we need some of the advanced features of pdftk on the command line ...
cypherabe's user avatar
  • 121
2 votes
2 answers
2k views

How to run a java executable without java -jar [duplicate]

As pdftk is not yet available on Ubuntu 18.04 I compiled a pdftk fork following this excellent answer to a related question. This works great, however I now have to type java -jar build/jar/pdftk....
Bruni's user avatar
  • 10.5k
52 votes
2 answers
67k views

How to install pdftk on Ubuntu 18.04 Bionic? [duplicate]

I tried to install pdftk in Ubuntu 18.04. It seems to be that the package is missing from official repositories. How can I install pdftk?
Ivan's user avatar
  • 889
170 votes
17 answers
114k views

How can I install pdftk in Ubuntu 18.04 and later?

Is there any chance of getting pdftk working in Ubuntu 18.04? I need this for creating PDF files with a watermark in shell. Or, does anybody know a working alternative to pdftk to generate a PDF ...
WiKrIe's user avatar
  • 1,939
2 votes
0 answers
2k views

pdftk on Lubuntu 18.04 - is it possible? [closed]

Today I've migrated onto Lubuntu 18.04 from Ubuntu 16.04. Got a lot of scripts that use pdftk tool. But now I can't install it either with apt-get or with synaptic. Tried to install from deb - got a ...
Lorrey's user avatar
  • 21
0 votes
0 answers
404 views

How to replace pages in pdf with bookmarks?

I have a pdf-file pdf1 with bookmarks and I have another pdf-file pdf2. I want to replace all (or part of) the pages of pdf1 with the pages of pdf2 so that the bookmarks stay where they were. In ...
evb's user avatar
  • 142
0 votes
1 answer
1k views

Script to convert images in subfolders to individual PDF's [duplicate]

I am looking for a way of automating a manual conversion of directories containing images (jpgs & pngs) into PDF's. For example .. I currently use the following command to achieve what I want ...
Ben Robins's user avatar
24 votes
5 answers
18k views

Create a PDF with specific page ranges of multiple PDF files?

I have found many related questions in this forum. But, none addresses my issue. Please double-check before marking it as duplicate. Suppose I have two PDF files. first.pdf having 10 pages. second....
ddas's user avatar
  • 446
0 votes
1 answer
3k views

Install pdftk-1.44 on ubuntu 16

We have installed Ubuntu 16.04 and apt-get install pdftk install the release 2.02 But I need to install the pdftk-1.44 for an application dependency related. Any help in this matter would be highly ...
E. A.'s user avatar
  • 11
2 votes
0 answers
295 views

How to split a PDF and keep its form fields

I am trying to split a multi-paged PDF document that contains form fields (check boxes, text boxes). In case it is important to know, the PDF's form fields are initially all blank/empty/un-checked. I ...
Arya's user avatar
  • 631
1 vote
2 answers
3k views

Splitting all files in a folder with pdftk

I'm trying to use pdftk to split a folder containing pdf files into their constituent pages. Here is my code: ~/MCO/MCOs$ for file in *.pdf; do pdftk "$file" burst; done The command itself does not ...
Fruitspunchsamurai's user avatar
0 votes
1 answer
646 views

Splitting large pdf based on page range?

Let us say I have a large pdf called input.pdf and take the page ranges 1-4 5-9 10-13 14-end (say) and put them into individual pdfs called output1.pdf, output2.pdf ... What is the best (and quickest) ...
Quantum spaghettification's user avatar
3 votes
0 answers
1k views

inserting few copies of the same page into PDF

I want to insert X blank pages into PDF document. I can do it with pdftk : pdftk A=book.pdf B=page.pdf cat A1-end B output output.pdf When I want insert more than one page, I can do something like ...
ts01's user avatar
  • 399
2 votes
1 answer
1k views

Can I make a PDF to expire after a specific date

I am using Ubuntu 14.04 LTS. I want to know some extra security tips in dealing with PDF files. I found that we can easily make a PDF file password protected using pdftk command from here. But is it ...
ddas's user avatar
  • 446
10 votes
3 answers
18k views

Is there any tool to convert pdf to ppt/odp slides in Linux/ Ubuntu offline?

I am looking for a tool that converts PDF into PPT files or supports any tweak to import PDF files into LibreOffice-impress, LibreOffice-Draw imports the PDF but that does not do the job. So far I am ...
Pavel Sayekat's user avatar
5 votes
2 answers
3k views

How to extract first 10pages from each pdf files of a folder

I have 90 sub-folders in a folder. Each sub-folder contains pdf files. Total pdf files are nearly 2200. How can I extract page number 3 to 10 from all pdfs? To extract the pages from one pdf, I am ...
info-farmer's user avatar
2 votes
1 answer
3k views

PDFTK, CODE128 and UTF-8

I'm used to fill PDF forms from PHP using PDFTK. Recently, I was asked to insert a code-128 barcode in a PDF. To do so, I created a PDF with several text fields for human-readable entries plus a ...
MaxAuray's user avatar
  • 231
1 vote
1 answer
2k views

How to merge a pdf file as a first page into many pdf files?

I have a creative commons license in one .pdf file, say license.pdf. I want to merge this license.pdf as a first page in another .pdf file. I can do it manually by the following command: pdftk ...
info-farmer's user avatar
3 votes
0 answers
694 views

Translate the page numbers of internal links in a pdf link to?

I use pdftk to (extract and) merge some pdf files. One of the input pdf files has internal links within it, i.e. when clicking such links will jump to another position in the pdf file. But in the ...
Tim's user avatar
  • 25.2k