SignPDFRemoteBytes
Methode (Function) · gibt Byte() zurück
SignPDFRemoteBytes ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (aus der SDK-Dokumentation): Same as SignPDFRemote, but works on bytes (e.g. for web services): returns the signed PDF, or Nothing on error (reason in Last_Error).
Rückgabe: The signed PDF bytes, or Nothing on error.
Deklaration
Public Function SignPDFRemoteBytes(ByVal PDFData() As Byte, ByVal ServerURL As String, ByVal UserName As String, ByVal Password As String, Optional ByVal Level As String = "B-LTA", Optional ByVal Reason As String = "", Optional ByVal Location As String = "", Optional ByVal ContactInfo As String = "", Optional ByVal LicenseKey As String = "", Optional ByRef EffectiveLevel As String = "", Optional ByVal TimeoutSeconds As Integer = 120) As Byte()
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
PDFData | Byte() | erforderlich | PDF bytes to sign (max. 10 MiB, not encrypted). |
ServerURL | String | erforderlich | Base URL of the CodeB tenant, e.g. https://your-codeb-server (https only). https://phone.codeb.io is CodeB's test server only - not for production use. |
UserName | String | erforderlich | CodeB user name (HTTP Basic). |
Password | String | erforderlich | CodeB password. |
Level | String | optional (Standard: "B-LTA") | PAdES level: B-B, B-T, B-LT or B-LTA (default). |
Reason | String | optional (Standard: "") | Optional /Reason. |
Location | String | optional (Standard: "") | Optional /Location. |
ContactInfo | String | optional (Standard: "") | Optional /ContactInfo. |
LicenseKey | String | optional (Standard: "") | Licence key; empty uses the licence already set. |
EffectiveLevel | String | optional (Standard: "") | Returns the level the service actually produced. |
TimeoutSeconds | Integer | optional (Standard: 120) | HTTP timeout in seconds (default 120). |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.SignPDFRemoteBytes(PDFData, ServerURL, UserName, Password)
COM-Schnittstelle
SignPDFRemoteBytes ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 327 von 327) 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.