Questions tagged [php-pdftk]
27 questions
3
votes
1 answer
Using the mikehaertl\php-pdftk library for manipulating PDFs, chaining commands fails when getDataFields is called first
I'm attempting to create a wrapper class around the mikehaertl\php-pdftk\pdf object for the purposes of populating PDF form fields. When trying to chain commands via the documentation the pdf fails to correctly execute the second command (or any…

c0pp3rt0p
- 141
- 1
- 8
3
votes
0 answers
Cyrillic letters not displaying in PDF generated by pdftk
The problem is that Cyrillic letters not displaying in PDF form created with pdftk, specifically using mikehaertl/php-pdftk package:
When clicked, the symbols are displaying:
In Windows 10 Acrobat Reader similar file looks like this:
Here is the…

Peter Reshetin
- 925
- 1
- 7
- 13
2
votes
1 answer
pdftk populated texraea is not scrollable
I am using php pdftk to take data out of a mysql database and put it in a bunch of different fields on a PDF. My issue is a few of the fields potentially have long text however instead of then showing an up/down scroll bar or even being able to…

Jayreis
- 253
- 1
- 7
- 28
1
vote
1 answer
Google Chrome FDF data unable to be filled into PDF by PDFTK
I have a PDF form that I have set up to send (X)FDF data to a php script, that uses PDFTK to parse the (X)FDF data and flatten it, then save it as a PDF on my system (for testing). Everything functions normally in Adobe Acrobat Pro.
But when I use…

reesericci
- 53
- 1
- 8
1
vote
0 answers
Is there a way to execute a PDF field script while filling its form with pdftk?
I've been tasked to fill a pre-made PDF form via a Symfony app. I'm using this pdftk wrapper to do the job, but there's an issue.
This PDF uses some scripts for hiding/showing some field: for example, they trigger when a radio button has been…

Elsifo
- 31
- 3
1
vote
1 answer
pdftk - Filling auto-fill PDF form with a FDF
First of all, thank you for the time you are taking to read my question.
I have a PDF file with a part that, when you fill it, it populates other parts of the PDF.
Basically, you enter your last name and it populates the parts of the PDF that need…

Juan Antonio
- 21
- 1
- 7
0
votes
0 answers
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 work for me.
Here's the code I have…

Theo
- 2,262
- 3
- 23
- 49
0
votes
0 answers
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 Aciu , jusu PDF jau sugeneruotas,

EdvinasJ
- 1
- 1
0
votes
0 answers
How can I access to the 'Choice' options? - PDFTK/mikehaertl/PHP/LINUX
Recently I started work with pdftk, all good, but i can't access to all 'FieldType: Choice' (is like a dropdown or a html select tag), Options!, somebody could help me?
my code is:
$pdf = new…

Eduardo Chiquito
- 47
- 1
- 9
0
votes
1 answer
Fill Pdf form using php laravel
I'm trying to fill a pdf and save it using php. I'm also tried FPDF this script but its throws a error FPDF-Merge Error: Object streams are not supported. After I'm also tried php-pdftk package. I'm using ubuntu 20.04 so there no instruction to …

Tharindu Prabodhana
- 181
- 1
- 4
- 16
0
votes
0 answers
PHP passthru with pdftk not supporting unicode characters
I am trying to fill a pdf template with Chinese and Japanese Language. TCPDF is the library used and for filling data to pdf used forge_fdf. Following is the code used
passthru("pdftk $abs_pdf_path fill_form $fdf_fn output $certFileName owner_pw…

Anuja Nair
- 1
- 1
0
votes
1 answer
0
votes
0 answers
PDFTK not executing from Wordpress Plugin
I am creating a Wordpress plugin that utilizes PDFTK. I followed the documentation for php-pdftk and my PHP looks like this:
$pdf = new Pdf('/pdf-templates/testpdf.pdf', ['command' => 'C:\Program Files (x86)\PDFtk\bin\pdftk.exe',
…

David McIntyre
- 218
- 1
- 9
0
votes
0 answers
How to use PDFTK background in php?
PHPTK has a option that allows library devs to set a background for the pdf that is generated and here is the link - https://github.com/mikehaertl/php-pdftk#add-background-pdf
But in short it tells to add -
$pdf->background('/path/back.pdf')
But…

somp60
- 1
- 1
0
votes
0 answers
Fillable PDF(php-pdftk) Radio Buttons All or Nothing, Cannot Fill a Specific Value
I'm using php-pdftk (https://github.com/mikehaertl/php-pdftk) to fill out the following fillable PDF form:
https://www.cigna.com/static/www-cigna-com/docs/health-care-providers/form-cms1500.pdf
In examining the fields, I see that there are several…