Click or drag to resize
SignDocDocumentLoader Class
Create SignDocDocument objects. Unless you need differently configured SignDocDocumentLoader objects, you should have only one SignDocDocumentLoader object per process. Loading font configuration files can be expensive, in particular if many fonts have to be scanned.
Inheritance Hierarchy
SystemObject
  de.softpro.signdocsdkSignDocDocumentLoader

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.6773.37566
Syntax
C#
public sealed class SignDocDocumentLoader : IDisposable

The SignDocDocumentLoader type exposes the following members.

Constructors
  NameDescription
Public methodSignDocDocumentLoader
Constructor
Top
Methods
  NameDescription
Public methodcreatePDF
Create an empty PDF document. The PDF document is invalid until you add at least one page. SignDocDocument.addSignature() cannot be used until the document has been saved.
Public methodcreatePDFA
Create an empty PDF/A document. The PDF document is invalid until you add at least one page. SignDocDocument.addSignature() cannot be used until the document has been saved.
Public methodDispose
Releases all resources used by the SignDocDocumentLoader
Public methodgetFailedFontFiles
Get the pathnames of font files that failed to load for the most recent loadFontConfig*() or loadPdfFontConfig*() call. This includes files that could not be found and files that could not be loaded.In the former case, the pathname may contain wildcard characters. Note that loadFontConfig*() and loadPdfFontConfig() no longer fail if a specified font file cannot be found or loaded.
Public methodStatic membergetInstallationCode
Get the installation code needed for creating a license file.
Public methodStatic membergetLicenseText
Get license text
Public methodStatic membergetLicenseTextCount
Get license text count
Public methodStatic membergetRemainingDays
Get the number of days until the license will expire
Public methodStatic membergetVersionNumber
Get the version number of SignDoc SDK.
Public methodStatic memberinitLicenseManager
Initialize license management. License management must be initialized before the non - static methods of SignDocDocumentLoader can be used.
Public methodinitLogging
Initialize logging. This function throws an exception if the log file cannot be opened.This function initializes logging for all threads of the current process.
Public methodloadFontConfigEnvironment
Load font configuration from files specified by an environment variable. Suitable fonts are required for putting text containing characters that cannot be encoded using WinAnsiEncoding into text fields, FreeText annotations, DigSig appearances, watermarks, and pages of PDF documents.See section Font Configuration. Under Windows, directories are separated by semicolons.Under Unix, directories are separated by colons. The font configuration applies to all SignDocDocument objects created by this object.
Public methodloadFontConfigFile
Load font configuration from a file. Suitable fonts are required for putting text containing characters that cannot be encoded using WinAnsiEncoding into text fields, FreeText annotations, DigSig appearances, watermarks, and pages of PDF documents. See section Font Configuration.
Public methodloadFontConfigStream
Load font configuration from a stream. Suitable fonts are required for putting text containing characters that cannot be encoded using WinAnsiEncoding into text fields, FreeText annotations, DigSig appearances, watermarks, and pages of PDF documents.See section Font Configuration. The font configuration applies to all SignDocDocument objects created by this object.
Public methodloadFromFile
Load a document from a file. Signing the document will overwrite the document, but see integer parameter "Optimize" of SignDocSignatureParameters. You can open FDF files that reference a PDF file; the referenced PDF file will be opened and the FDF file will be applied to the loaded copy (using SetFieldFlag::FontFail).If the pathname of the referenced PDF file is not an absolute pathname, it will be interpreted as being relative to the directory containing the FDF file.
Public methodloadFromMemory
Load a document from memory.
Public methodloadPdfFontConfigEnvironment
Load font configuration for PDF documents from files specified by an environment variable. Additional fonts may be required for rendering PDF documents.The font configuration for PDF documents contains mappings from font names to font files.See section Font Configuration. The font configuration for PDF documents is global, ie, it affects all PDF documents, no matter by which SignDocDocumentLoader object they have been created. Under Windows, directories are separated by semicolons.Under Unix, directories are separated by colons.
Public methodloadPdfFontConfigFile
Load font configuration for PDF documents from a file. Additional fonts may be required for rendering PDF documents.The font configuration for PDF documents contains mappings from font names to font files.See section Font Configuration. The font configuration for PDF documents is global, ie, it affects all PDF documents, no matter by which SignDocDocumentLoader object they have been created.
Public methodloadPdfFontConfigStream
Load font configuration for PDF documents from a stream. Additional fonts may be required for rendering PDF documents.The font configuration for PDF documents contains mappings from font names to font files.See section Font Configuration. The font configuration for PDF documents is global, ie, it affects all PDF documents, no matter by which SignDocDocumentLoader object they have been created.
Public methodloadTrustedCertificatesFromFile
Load trusted root CA certifcates from a file. The loaded certificates are used for all SignDocDocument objects created by this object. They are used for signature verification and HTTPS connections. For iOS, they replace the system's trusted anchors, for other operating systems, they are used in addition to the operating system's trusted root CA certificates. The file must contain either a single DER-encoded X.509 certificate or at least one PEM-encoded X.509 certificate. Calls to loadTrustedCertificatesFromFile() and loadTrustedCertificatesFromStream() are cumulative.
Public methodloadTrustedCertificatesFromStream
Load trusted root CA certifcates from a stream. The loaded certificates are used for all SignDocDocument objects created by this object. They are used for signature verification and HTTPS connections. For iOS, they replace the system's trusted anchors, for other operating systems, they are used in addition to the operating system's trusted root CA certificates. The stream must contain either a single DER-encoded X.509 certificate or at least one PEM-encoded X.509 certificate.
Public methodping
Check if a document is supported by this handler.
Public methodsetFlags
Set flags modifying the behavior of this SignDocDocumentLoader object and of the SignDocDocument objects created by it.
Public methodStatic membersetLicenseKey
Initialize license management. License management must be initialized before the non - static methods of SignDocDocumentLoader can be used.
Public methodStatic membersetLicenseKey2
Initialize license management. License management must be initialized before the non - static methods of SignDocDocumentLoader can be used.
Top
See Also