mikehaertl / php-pdftk

A PDF conversion and form utility based on pdftk
MIT License
952 stars 128 forks source link

Form radio button had change with template #290

Closed maxdang29 closed 2 years ago

maxdang29 commented 2 years ago

I have form image and prepare form like this image

I generate the pdf $pdftk->fillForm(['applicant1own_property' => 'Yes']) ->flatten() ->needAppearances();

it change to image

My expectation is to stay the same as before, I don't know what happen?

mikehaertl commented 2 years ago

I don't really know but you may have passed the wrong values when you fill the form. They can often be different from the field labels. Check with pdftk xyz.pdf dump_data_fields and look for FieldValue.

Apart from that I have no other idea. pdftk can not modify the form layout. So it could also be that something is wrong with your PDF form.