IUDC
The principal interface providing access to the capabilities of Universal Document Converter
Properties
Universal Document Converter activation method. It is both readable and writable.
Constant | Value | Description |
---|---|---|
AM_SILENT | 0 | Software activation is transparent to user. |
AM_WIZARD | 1 | Activation wizard. |
String DefaultPrinter
Returns or sets the user’s system default printer. It is both readable and writable.
IPageFormat PageFormats (Integer formIndex) or PageFormats (String formName)
Provides access to the IPageFormat interface which controls page formats. It is both readable and writable.
Parameter | Type | Description |
---|---|---|
formIndex | Integer | Page format ID. |
formName | String | Page format name. |
IUDCPrinter Printers (String Name)
Provides access to the IUDCPrinter interface which controls the Universal Document Converter virtual printer. It is both readable and writable.
Parameter | Type | Description |
---|---|---|
Name | String | Universal Document Converter virtual printer name. |
Methods
Activate ()
Enables Universal Document Converter to be pre-activated. Otherwise, software activation will start automatically when any method or property of the IProfile interface is first called. The activation mode may be set prior to calling this method using the ActivationMode property.
AddPageFormat (String sCustomFmtName, Float W, Float H, Enum Units)
Creates a new page format in the Universal Document Converter format list.
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sCustomFmtName | String | New page format name. | ||||||||||||
W | Float | New page format width. Valid range: between 10 and 3251. | ||||||||||||
H | Float | New page format height. Valid range: between 10 and 3251. | ||||||||||||
Units | Enum | Units of measure used for the new page format height and width. May take on the following values:
|
RemovePageFormat (String sCustomFmtName)
Deletes a previously created page format in the Universal Document Converter format list.
Parameter | Type | Description |
---|---|---|
sCustomFmtName | String | Name of page format to be deleted. |
Examples
Visual Basic 6
Dim objUDC As IUDC Dim itfPageFormat As IPageFormat Set objUDC = New UDC.APIWrapper ' Choose activation mode objUDC.ActivationMode = AM_SILENT ' Perform activation using selected mode Call objUDC.Activate ' Set "Universal Document Converter" printer as default in system objUDC.DefaultPrinter = "Universal Document Converter" ' Add custom page format Call objUDC.AddPageFormat("My Format", 10.25, 25.1, UNIT_IN) Set itfPageFormat = objUDC.PageFormats("My Format") ' Delete custom page format Call objUDC.RemovePageFormat("My Format")