pdf-raku / PDF-API6

Facilitates the creation and modification of PDF files
Artistic License 2.0
6 stars 3 forks source link

Todo: Support Form-filling #7

Open dwarring opened 4 years ago

dwarring commented 4 years ago

After some experimentation, setting the form value is not enough to enter a displayable value (Acrobat Reader). Displays OK on Xpdf, Evince, but AR needs an Appearance. Perl 5 CAM PDF's CAM::PDF.fillFormFields() can be used as a reference implementation for this feature.

dwarring commented 4 years ago

If PDF form fields are appropriately structured and to spec, it's not necessary to rebuild the forms appearance (/AP entry), but some aren't. Considering something like:

$form.value(:reformat) = $v

The form appearance will be rebuilt, but current form is lost. Can be used to fix up dodgy forms.