PDF-Reuse-Tutorial

 view release on metacpan or  search on metacpan

Tutorial.pm  view on Meta::CPAN

and printed.  With this check number method you need the log to verify that a document
is consistent. If that is good or not depends on your needs.

=head2 Replacing placeholders with form fields

A common need is to have a nicely designed PDF template with placeholder areas that
get filled in with data from your program. For example, you might have an invoice PDF
with fields for customer name, address, and line items; or a certificate with a name
and date field.

The previous examples showed how to overlay text at specific coordinates using prForm()
and prText(). That works well, but you have to know the exact x,y position for every
piece of text. An alternative approach is to use B<interactive form fields> (AcroForm
fields) as named placeholders. You design your template with named fields, and then use
prField() to fill them in by name.

B<Step 1: Create a PDF template with named form fields.>

Use a tool like LibreOffice Writer, LibreOffice Draw, or Adobe Acrobat to create your
PDF template. Add text form fields where you want dynamic content to appear. Give each
field a meaningful name like "Name", "Address", "Date", etc. Export or save as PDF with



( run in 1.592 second using v1.01-cache-2.11-cpan-39bf76dae61 )