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

NameTypPflichtBeschreibung
PDFDataByte()erforderlichPDF bytes to sign (max. 10 MiB, not encrypted).
ServerURLStringerforderlichBase 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.
UserNameStringerforderlichCodeB user name (HTTP Basic).
PasswordStringerforderlichCodeB password.
LevelStringoptional (Standard: "B-LTA")PAdES level: B-B, B-T, B-LT or B-LTA (default).
ReasonStringoptional (Standard: "")Optional /Reason.
LocationStringoptional (Standard: "")Optional /Location.
ContactInfoStringoptional (Standard: "")Optional /ContactInfo.
LicenseKeyStringoptional (Standard: "")Licence key; empty uses the licence already set.
EffectiveLevelStringoptional (Standard: "")Returns the level the service actually produced.
TimeoutSecondsIntegeroptional (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.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.