GetZUGFeRD_XMLStreamfromPDFStream
Methode (Function) · gibt System.IO.Stream zurück
GetZUGFeRD_XMLStreamfromPDFStream 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 supplied as stream and returns it as stream. The stream is written to a temporary file (deleted afterwards) and processed by GetZUGFeRD_XMLfromPDF.
Rückgabe: A MemoryStream with the XML; an empty stream on failure (see Last_Error).
Deklaration
Public Function GetZUGFeRD_XMLStreamfromPDFStream(ByVal InputPDFStream As System.IO.Stream, Optional ByVal Licensekey As String = "") As System.IO.Stream
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InputPDFStream | System.IO.Stream | erforderlich | Stream containing the PDF |
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 |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim InputPDFStream As System.IO.Stream = Nothing
Dim ergebnis = alo.GetZUGFeRD_XMLStreamfromPDFStream(InputPDFStream)
Aufruf (C#)
var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice; // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
System.IO.Stream inputPDFStream = default;
var ergebnis = alo.GetZUGFeRD_XMLStreamfromPDFStream(inputPDFStream);
COM-Schnittstelle
GetZUGFeRD_XMLStreamfromPDFStream ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 104 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.