Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to mock PDFTK in pestphp

Can you help me how to fix this issue. I'm trying to write a unit test that checks the Pdf generation in my application. It was working on my local env but when I tried to upload it in Bitbucket the ...
gilbertdim's user avatar
0 votes
0 answers
19 views

Add footer to PDF at inconsistent intervals

I have a pdf file of some lecture transcript. And I have the pager numbers each lecture starts at as below Lecture 1-page 4 Lecture 2-page 28 Lecture 3-page 50 ... I would like to add a footer OR ...
XYZ's user avatar
  • 385
0 votes
1 answer
77 views

Merge file pdf in subfolder & folder that same 8 last letters name, using pdftk or merge-Pdf

# Define the path to the general folder $generalFolderPath ='F:\9.POWERSHELL' # - use for my laptop $outputCsvPath = "F:\9.enter image description herePOWERSHELL" # - use for my laptop # ...
Pham KS's user avatar
0 votes
0 answers
49 views

Font Size Discrepancy in Fillable PDF Form Between pdftk and Apple Preview

I am working with a fillable PDF form and have encountered an issue with font sizes. When I fill out the fields directly using Apple Preview, the font sizes appear significantly different compared to ...
SaGon's user avatar
  • 1
0 votes
0 answers
78 views

Command works in CMD but not in C#

I am facing a trouble in executing a command in c# process with arguments. The command runs well in CMD but it returns no result with System.NotSupported Exception. string pdfkPath = @"C:\Dummy ...
Arpit Gupta's user avatar
  • 1,269
0 votes
0 answers
27 views

Is there a way to differentiate a user added "Off" and Adobe auto-added "Off" for radio buttons in the fields of a PDF doc from pdftk dump_data_fields

I am using the php-pdftk getDataFields() method to get the fields from a PDF form that is submitted to my PHP page. This maps directly to the dump_data_fields option of pdftk, and the same issue can ...
Ben Holness's user avatar
  • 2,707
0 votes
1 answer
96 views

pdftk unicode works in preview but not adobe acrobat

I generate a PDF file and the unicode text appears in macos preview but not acrobat. I have the following fdf file %FDF-1.2 1 0 obj << /FDF << /Fields [ << /T (name) /V <FEFF0793&...
K Split X's user avatar
  • 4,671
0 votes
1 answer
295 views

pdftk generated pdf does not render correct utf-8

Version is 2.02 I have a simple pdf with a name field. I created an fdf using pdftk pdftk form4.pdf generate_fdf output data4.fdf Removing the unnecessary fields, here is what it has: (full view on ...
K Split X's user avatar
  • 4,671
0 votes
1 answer
25 views

Include input file name in output option [closed]

I'm trying to burst multiple files in one go and would like to include the input filename and page number as the output. Something like: pdftk *.pdf burst output source_filename.%2d.pdf Any ideas. If ...
CatWazel67's user avatar
1 vote
1 answer
47 views

Can I skip PDF form fields from being filled in an FDF?

I use pdftk to fill_form in many pdf's in a loop. The problem im having is that i use pdftk to fill 3 of the 5 fields. The other fields have standar values. Is there a way to skip certain fields when ...
NoobInLifeGeneral's user avatar
0 votes
0 answers
106 views

Comparing 2 pdf files with imagemagick and pdftk to produce an output file with Ubuntu 20.04.6 LTS

I am trying to compare 2 pdf files in Linux, using imagemagick and pdftk to produce an output file showing the difference as red pixels. I have looked at: PDF compare on linux command line and How to ...
Brendan Darrer's user avatar
0 votes
0 answers
67 views

Is it possible to fill PDF fields with HTML using PDFTK?

I am using PDFTK to fill in PDF fields based on user input, then flatten the PDF. I have a requirement to add HTML fields so that the user input can be formatted with e.g. bold, lists, etc., and the ...
Ben Holness's user avatar
  • 2,707
1 vote
1 answer
94 views

Fill in PDF server backend special characters

I thought my problem would be easy: I wanted to create a PDF document from a template. There are 12 values that I want to fill in. I want to be able to change the template later on (design), so I ...
Akarik's user avatar
  • 11
2 votes
2 answers
187 views

letter-size pages scanned to PDF as legal size. How can I "trim" off the top?

We have 22 pages of legal documents that were originally on letter size paper. The originals were lost in a fire. The lawyer's office has a PDF with scans of the originals but the scan was done with ...
mnemotronic's user avatar
  • 1,025
1 vote
0 answers
83 views

How to call a PDFtk command within Laravel in AWS lambda

my laravel app is running on aws lambda, so I don't have access to console to perform some tasks, for example interact with pdfs, I was trying to use aws lambda layers, I have this package: https://...
DeveloperX's user avatar
0 votes
1 answer
170 views

PDFTK on plesk (centos)

I'm trying to use PDFTK on a php page hosted on a PLESK server (Centos) but I have an error... PDFTK was successfully installed with composer If I use : $pdf = new Pdf('form.pdf'); $result = $pdf->...
alex62400's user avatar
0 votes
1 answer
192 views

PDF Merging with Elixir and pdftk with Implementation?

I am working on an Elixir project that involves merging PDF files using the pdftk command-line tool. I have written a function in my Elixir module, PdfMerger.MergePdfs, to merge PDFs using the pdftk ...
SANONICHAN's user avatar
1 vote
2 answers
251 views

Pdftk fails to update_info the data that was produced by dump_data_annots

I am looking to save all annotations in a pdf to a file then import them back to a pdf. pdftk input.pdf dump_data_annots output annots.txt Outputs all the annotations in the following format: ...
OhtohV2's user avatar
  • 11
1 vote
1 answer
539 views

Create multiple PDF files from one large PDF file based on page

I have a large PDF file containing employee information. One page per employee, 500+ pages. I need to create a single PDF file per employee by splitting out this large file into smaller ones. I ...
RobinOlsen's user avatar
0 votes
0 answers
400 views

How can I flatten a PDF with pre-filled formfields in PHP?

I need to flatten a pre-filled PDF form before sending it to an external signing service using PHP. I have tried using the php-pdftk library (https://github.com/mikehaertl/php-pdftk), but it did not ...
Theo's user avatar
  • 2,782
0 votes
2 answers
320 views

Strange encoding of a pdf stream

I'm studying the internal structure of pdf, so i created a file in libreoffice writer, writing only the string "Hello world" and exported it to pdf. So I uncompressed it with: pdftk ...
Teo7's user avatar
  • 81
1 vote
0 answers
150 views

How can I fill a PDF template with data in PHP?

I've been looking for and trying solutions for 2 days now. Can't seem to find anything that works. Problem: Given a fillable PDF, I need to take data from a database and put it into the pdf, then ...
Dylan Buth's user avatar
  • 1,666
1 vote
1 answer
207 views

How to create repaginating sequences for booklet printing as output for pdftk?

I'm creating a workflow for booklet printing with 2 pages on an open spread: Use R to create the page sequence Use pdftk to repaginate the pdf Use lp to print the 2-up booklet I've written a loop ...
Rain's user avatar
  • 13
1 vote
1 answer
278 views

SafeShell::CommandFailedException: in pdftk

I am getting SafeShell::CommandFailedException: Shell command ["/opt/homebrew/bin/pdftk" error while executing pdftk.fill_form 'public/data.pdf', pdf_name_with_path, data, :flatten => ...
Chakreshwar Sharma's user avatar
0 votes
0 answers
44 views

PDF cover page printed as the only on the sheet, without empty pages inserted

I have a make-based workflow which uses pdftk to merge cover with LaTeX document. The cover is generated by the following recipe (if that matters): $(COVER) : $(patsubst %.pdf,%.svg,$(COVER)) ...
abukaj's user avatar
  • 2,712
-2 votes
1 answer
58 views

Loop in .bat file [closed]

I must rename more hundred files, they are numbered on the left, from 01 to 100, on the right side from G3002185 to G3002285 i use this script rename 01.pdf G3002185.pdf rename 02.pdf G3002186.pdf ...
Michael1834's user avatar
0 votes
0 answers
147 views

Unable to fill PDF fields when FDF contains Kids sections FPDF/FPDM

I can successfully fill PDF forms,but it looks to be breaking when there are Kids sections in them. E.g. this is the file I'm working with: $ pdftk test.pdf dump_data_fields | grep FieldName FieldName:...
JoeFish's user avatar
  • 3,100
0 votes
0 answers
139 views

split PDF by Pages php/js

i am trying to achieve the following: i have a PDF with bout 50-100 Pages. When the file is uploaded, i want to display every page. For this i found a solution "ImageMagick" - i create for ...
Mirko Babic's user avatar
0 votes
0 answers
59 views

PDF extract specific pages & merge with new filename

I have 2 pdf files (templates) from which I need to extract 1 page each and save as a combined pdf. Each pdf has a filename with a different 3 letter location indicator (e.g. LOC) for each of the ...
61912's user avatar
  • 1
1 vote
0 answers
198 views

Pdftk not working with Laravel on shared hosting

I am working on a project that needs a pdf form populated from a database my project is to develop on Laravel 9 and for pdf fill using mikehaertl/php-pdftk and this website is live on shared hosting. ...
MShoaib's user avatar
  • 35
0 votes
0 answers
73 views

pdftk outputting PDFs with artifacts on pages

I am using pdftk to collect specific PDF pages and output them to a new PDF file. Most of the pages are fine, but I am finding artifacts on some of the pages. The artifacts are usually similar and ...
bwoah's user avatar
  • 1
0 votes
1 answer
235 views

Can pdftk fold bookmarks?

I want to fold pdf bookmarks. How to make PDF index/bookmarks/outline always folded/collapsed/wrapped on Okular I only see that pdftk can insert bookmarks, but not how to fold bookmarks. https://...
user1424739's user avatar
  • 13.5k
-1 votes
1 answer
154 views

C# - Pdftk - How can i make it so that whenever a pdf has an odd number of pages, a blank page is added?

I want to merge many pdf to a single one with Pdftk. How can i make it so that whenever a pdf has an odd number of pages, a blank page is added? I need this function for a cmd tool which i need to ...
aljoscha's user avatar
0 votes
1 answer
670 views

Loop to Combine Multiple PDF Files in an Output Folder that All Begin with Same Word?

I have an output folder that has a series of reports, all beginning with the last name and first initial of the subject. For example: "DoeJ Jump.Performance.pdf" "MartinD Jump....
Matt Zukowski's user avatar
0 votes
0 answers
205 views

batch annotation for similar pdf files

I have many pdf files with same layout in which I need to fill in some details with plain text and sign in certain places with company stamp. I am trying to automate things, so I am after a way to ...
Moshe's user avatar
  • 7
0 votes
1 answer
133 views

pdftk merge of small image pdf creates a large overlay

FreeBSD-12.3p5 pdftk 3.3.2_1 I have a pdf file of an 87x87 pixel QRcode created from a png image file. qrencode --output=QR.png IN999999 magick identify QR.png QR.png PNG 87x87 87x87+0+0 8-bit ...
James B. Byrne's user avatar
1 vote
0 answers
84 views

Can I pass PDF data held in PHP variable to exec with PDFtk?

I am trying to run PDFtk using PHP exec. It worked fine with files that had physical locations. Is it possible to run exec if pdf data file is held in variable or does exec only work with files with ...
TWolfe's user avatar
  • 7
0 votes
0 answers
117 views

change pdftk encoding. Cyrillic display

I'm using pdftk to fill out a PDF form with fields. Numbers and Latin characters are filled in without problems, but when I try to fill in the form with a value using Cyrillic, I get ... (see picture)....
Sunbey13's user avatar
  • 423
0 votes
1 answer
469 views

How do I reduce size of pdf merge

I'm trying to merge a group of PDFs (Up to 1,000) per unique groups. Meaning, of 100,00 pdfs created I need them to be grouped at a practice/market level and to output a merged pdf file containing ...
btk666's user avatar
  • 5
0 votes
0 answers
379 views

Error during PDF form population, how do I fix and display pdf?

I am trying to populate a pdf form using the example posted here: https://www.adamalbrecht.com/blog/2014/01/31/pre-filling-pdf-form-templates-in-ruby-on-rails-with-pdftk/ I am trying to answer 2 ...
user891859's user avatar
0 votes
0 answers
35 views

Can't change hard link change in PHP

function is that it have to read pdf and print it, but i can't change hard link <a href="./isakymas/<?php echo $_GET['link'];?>" all function looks like this - ` <h1>Aciu <?...
EdvinasJ's user avatar
0 votes
1 answer
892 views

Batch for removing last 2 pages from PDF files on a folder

I am using the PDFtk to remove last 2 pages of a bunch of PDF from a specific folder. For removing it individually on a file, this code works perfectly fine as the last two pages are removed from ...
valdroni's user avatar
  • 168
0 votes
1 answer
1k views

Convert PDF to get vectorized text ("convert all text to outlines")

I'm using nodejs and I'm processing PDFs. One thing I'd like to do is to outline all the fonts of the PDF (so that they are not selectable with the mouse cursor afterwards). I tried the pdftk's ...
Contestosis's user avatar
1 vote
1 answer
95 views

Automatic merging of one page pdfs to two page pdfs

I know there are tools like pdftk or convert or ghostscript. but my searches failing because all of the solutions are build for 2 pdf-files merged into 1 pdf-file. But I have 30.000 PDF files and want ...
samsy's user avatar
  • 11
1 vote
0 answers
164 views

Is there a way to catenate specific pages from multiple pdfs using pdftk?

So say I have a few pdfs with. Some with a single page, some with 3, 4, 5 and so on… I want to extract say the 4th page from the pdfs (ignoring ones without the 4th) page and merge them into a single ...
Fraz's user avatar
  • 11
2 votes
1 answer
1k views

Fill pdf form image field with image

I have tried to use pdftk to fill a PDF form with text and images. Filling out text fields works fine, but it cant seem to add an image to an PDF form image field. Is there any way to add an image to ...
Vindur's user avatar
  • 373
3 votes
1 answer
578 views

Fill a PDF form with default data

I am working on editing a PDF form/template in Ruby On Rails application. I want to populate some of form fields with data from database and make few fields editable to take the input from user. I ...
Chakreshwar Sharma's user avatar
3 votes
2 answers
2k views

pdftk update_info command raising a warning which I don't understand

I'm trying to use the update_info command in order to add some bookmarks to an existing pdf's metadata using pdftk and powershell. I first dump the metadata into a file as follows: pdftk .\test.pdf ...
user32882's user avatar
  • 5,817
-1 votes
1 answer
651 views

Combining two pdfs with pdftk and the use of a loop

I have been working a project that involves combining the pages of two pdfs in a way that the pages from one pdf are the even pages of the final pdf and the pages of the second pdf are the odd pages ...
Filippos Papalos's user avatar
1 vote
0 answers
95 views

Predicting file size of output file when merging PDFs (using GhostScript or similar)

This is what I am trying to achieve: I got several hundred small PDF files of varying size. I need to merge them into chunks of close to but no more than a certain target file size. I am familiar with ...
jschpmr's user avatar
  • 98

1
2 3 4 5
11