mikehaertl/php-pdftk

Form radio button had change with template

maxdang29 opened this issue · 1 comments

I have form
image
and prepare form like this
image

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

it change to
image

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

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.