Skip to content

Reading PDF Documents

HorstOeko edited this page Jan 3, 2025 · 5 revisions

Table of contents

Related issues

  • Nothing found

Read a pdf file with attached xml file

Important

This part of the documentation still needs to be revised, but it shows the possibilities.

Reading invoice data from a PDF is similar: you just need to use the ZugferdDocumentPdfReader class instead of ZugferdDocumentReader:

use horstoeko\zugferd\ZugferdDocumentPdfReader;

$document = ZugferdDocumentPdfReader::readAndGuessFromFile(dirname(__FILE__) . "/xml/factur-x.pdf");

The further reading of the invoice data is then identical with Reading XML documents

Clone this wiki locally