- import PDF file(s). Examples can be found
db/fixtures/factur-x/ - generate Invoice objects from attached PDF files
- parse PDF files to extract XML
- parse XML to get required data
bundle
rails db:create db:migrate
rails s
ZUGFeRD combines structured data with a visual PDF, while XRechnung relies exclusively on structured data.
PDF/A-3: PDF with embedded XML - human and machine readable
match incoming invoice with purchase order => pay
The CEN (European Committee for Standardization) has done this and produced the European Semantic Standard for electronic invoicing (EN 16931).
SIREN FR = NIP PL
credit note VS invoice?
"The presence of a specific PDF/A XMP extension scheme to describe the document as a Factur-X invoice corresponding to this specification, as well as the corresponding XMP metadata."
5.3. 2 differences in the use of Factur-X between France and Germany
6.2.2 ideally data relationship type should be Alternative (XML is the alternative to PDF)
The invoice might be not the only file embedded in the PDF!