mikehaertl / php-pdftk

A PDF conversion and form utility based on pdftk
MIT License
939 stars 124 forks source link

[Question] Flatten just specific form fields? #284

Closed Jannomag closed 2 years ago

Jannomag commented 2 years ago

Hi, I finally got php-pdftk working for filling a pdf. It works flawlessly but I'm looking for a way to flatten just specific form fields instead of flatten the whole document. Is this even possible?

mikehaertl commented 2 years ago

This is a question about pdftk. We can only wrap the features provided by pdftk. To my knowledge there are no options to flatten, so there's probably no way to only flatten a part of a form.

Jannomag commented 2 years ago

Well, I couldn't find an answer so I tried asking you because you worked with pdftk way more than me. Anyways, sadly pdftk seems to have no option for this at all. Thanks!