GetZUGFeRD_XMLfromPDF
Methode (Function) · gibt Byte() zurück
GetZUGFeRD_XMLfromPDF ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Extracts the embedded ZUGFeRD / Factur-X / XRechnung invoice XML from a PDF file. The attachment named in the PDF/A XMP metadata is preferred; otherwise ZUGFeRD-invoice.xml, factur-x.xml or xrechnung.xml, then any attachment whose name contains zugferd, factur or xrechnung, then any .xml attachment, and finally any attachment containing CrossIndustryInvoice.
Rückgabe: The XML as byte array, or an empty array if nothing was found or an error occurred (see Last_Error).
Deklaration
Public Function GetZUGFeRD_XMLfromPDF(ByVal InputPDF As String, Optional ByVal Licensekey As String = "", Optional ByRef DataLenght As Integer = 0) As Byte()
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InputPDF | String | erforderlich | Path of the PDF file |
Licensekey | String | optional (Standard: "") | Licence key; if empty the key already set on the object, the global key or a key stored in the registry is used |
DataLenght | Integer | optional (Standard: 0) | (output) Length in bytes of the returned XML, 0 on failure |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim InputPDF As String = ""
Dim ergebnis = alo.GetZUGFeRD_XMLfromPDF(InputPDF)
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
string inputPDF = "";
string licensekey = "";
int dataLenght = 0;
var ergebnis = alo.GetZUGFeRD_XMLfromPDF(inputPDF, licensekey, ref dataLenght);
Artikel mit GetZUGFeRD_XMLfromPDF
COM-Schnittstelle
GetZUGFeRD_XMLfromPDF ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 101 von 343) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.