FileAttachments
Methode (Function) · gibt AloahaPDF.NET.PDF.File_Attachment() zurück
FileAttachments ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Extracts all embedded file attachments of a PDF.
Rückgabe: Array of File_Attachment (file name and bytes). Nothing if not licensed (Last_Error = "License Problem"); engine errors are copied to Last_Error and Last_Error_Code.
Deklaration
Public Function FileAttachments(ByVal InputPDF As String, Optional ByVal OwnwerPass As String = "", Optional ByVal ForceLiveCycleMode As Boolean = False, Optional ByVal Licensekey As String = "") As AloahaPDF.NET.PDF.File_Attachment()
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InputPDF | String | erforderlich | Path of the PDF file |
OwnwerPass | String | optional (Standard: "") | Owner password of the PDF, if encrypted |
ForceLiveCycleMode | Boolean | optional (Standard: False) | Passed to the PDF engine to force LiveCycle mode when reading attachments |
Licensekey | String | optional (Standard: "") | Optional licence key; if empty the stored licence or registry licence is used |
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.FileAttachments(InputPDF)
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);
string inputPDF = "";
var ergebnis = alo.FileAttachments(inputPDF);