GetFacturXInvoiceInfo

Dokumentegenskaper

Beskrivning

Reads e-invoice fields recognized by DetectFacturXInvoice

Syntax

Delphi

Function TPDFlib.GetFacturXInvoiceInfo(Tag: Integer): WideString;

Parametrar

TagFältnumret som ska läsas: 1 för det faktiska XML-filnamnet, 2 för XMP DocumentFileName, 3 för DocumentType, 4 för Version, 5 för ConformanceLevel, 6 för XML-riktlinje-ID:t och 7 för /AFRelationship

Returvärden

Det begärda textfältet, eller en tom sträng när ingen e-faktura upptäcktes eller fältnumret är okänt

Exempel

// Read the detected invoice profile
begin
  if PDF.DetectFacturXInvoice = 1 then
  begin
    FileName := PDF.GetFacturXInvoiceInfo(1);
    Profile := PDF.GetFacturXInvoiceInfo(5);
  end;
end;

Se även

DetectFacturXInvoice, ValidateFacturXInvoice, ExtractFacturXXMLToString