GetFacturXInvoiceInfo

Właściwości dokumentu

Opis

Odczytuje pola e-faktury rozpoznane przez DetectFacturXInvoice

Składnia

Delphi

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

Parametry

TagNumer pola do odczytu: 1 dla rzeczywistej nazwy pliku XML, 2 dla XMP DocumentFileName, 3 dla DocumentType, 4 dla Version, 5 dla ConformanceLevel, 6 dla identyfikatora wytycznych XML i 7 dla /AFRelationship

Wartości zwracane

Żądane pole tekstowe albo pusty ciąg, gdy nie wykryto e-faktury lub numer pola jest nieznany

Przykład

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

Zobacz również

DetectFacturXInvoice, ValidateFacturXInvoice, ExtractFacturXXMLToString