What is textpdf API2?
PDF::API2 is ‘The Next Generation’ of Text::PDF::API, a Perl module-chain that facilitates the creation and modification of PDF files. It features support for the 14 base PDF Core Fonts, TrueType fonts, and Adobe-Type1, with unicode mappings, embedding o.
What is the use of API2 in PDF file?
PDF::API2 contains circular references, so this call is necessary in long-running processes to keep from running out of memory. This will be called automatically when you save or stringify a PDF. You should only need to call it explicitly if you are reading PDF files and not writing them.
What does defaultgets/set the default value for PDF API2 behaviour?
Gets/sets the default value for a behaviour of PDF::API2. prohibits API2 from rotating imported/opened page to re-create a default pdf-context. enables than API2 will add save/restore commands upon imported/opened pages to preserve graphics-state for modification.