DetectFacturXInvoice

Documenteigenschappen

Beschrijving

Controleert of het huidige document herkenbare e-factuur-XML bevat en leest de basisidentificatoren uit XMP- en XML-metadata

Syntaxis

Delphi

Function TPDFlib.DetectFacturXInvoice: Integer;

Retourwaarden

0Er is geen herkenbare e-invoice-XML gevonden
1Er is herkenbare e-invoice-XML gevonden

Opmerkingen

De detectie gebruikt eerst de XMP-waarde DocumentFileName en probeert daarna factur-x.xml, xrechnung.xml, zugferd-invoice.xml en ZUGFeRD-invoice.xml

Gebruik na een geslaagde aanroep GetFacturXInvoiceInfo om de bestandsnaam, versie, conformit niveau, richtlijn-ID en /AFRelationship te lezen

Voorbeeld

// Check whether the loaded PDF carries invoice XML
begin
  if PDF.DetectFacturXInvoice = 1 then
    InvoiceFileName := PDF.GetFacturXInvoiceInfo(1);
end;

Zie ook

GetFacturXInvoiceInfo, ValidateFacturXInvoice, ExtractFacturXXMLToString