DetectFacturXInvoice
خصائص المستند
الوصف
يفحص إن كان المستند الحالي يحتوي XML فاتورة إلكترونية قابلة للتعرف ويقرأ المعرفات الأساسية من بيانات XMP وXML الوصفية
الصيغة
Delphi
Function TPDFlib.DetectFacturXInvoice: Integer;
قيم الإرجاع
| 0 | لم يوجد XML فاتورة إلكترونية قابل للتعرف |
|---|---|
| 1 | وُجد XML فاتورة إلكترونية قابل للتعرف |
ملاحظات
يستخدم الاكتشاف أولًا قيمة DocumentFileName في XMP ثم يجرب factur-x.xml وxrechnung.xml وzugferd-invoice.xml وZUGFeRD-invoice.xml
بعد استدعاء ناجح استخدم GetFacturXInvoiceInfo لقراءة اسم الملف والإصدار ومستوى الامتثال ومعرّف الإرشادات و/AFRelationship
مثال
// Check whether the loaded PDF carries invoice XML
begin
if PDF.DetectFacturXInvoice = 1 then
InvoiceFileName := PDF.GetFacturXInvoiceInfo(1);
end;
انظر أيضا
GetFacturXInvoiceInfo, ValidateFacturXInvoice, ExtractFacturXXMLToString