Hands-on tutorials · PDF to XML
Export page text from a digital invoice PDF
A three-page digital invoice packet has selectable text.
By AnimaPDF editorial team · Updated:
Open this tool →The exercise
A three-page digital invoice packet has selectable text. Export it for a developer to inspect page-level text, rather than to submit it to an invoicing authority.
This is an illustrative exercise to reproduce, not a customer success claim. Use your own test copy; the page numbers in the example apply only to a sample with the stated conditions.
Follow the steps
Step 1
Choose the PDF and supply its existing password if necessary.
Step 2
Process the generic XML text export.
Step 3
Open the XML in a text editor and compare page text, amounts and source filename information.
Expected result and acceptance check
Expect a generic InvoiceTextExport document with Page and Text elements, not a standards-validated invoice with recognized supplier and tax fields.
Look for lost text and reading-order changes. An amount appearing in the XML does not establish what accounting role it has.
When processing finishes, use the download link in the workspace and save the result somewhere easy to find. Reopen that downloaded artifact rather than relying on the completion status. If processing fails, read the workspace error, check the input format and options, and retry.
If the result differs
Existing text layer only, no OCR. Generic XML output is not tax-standard validated.