The principal interface providing access to the capabilities of Universal Document Converter
Properties
Enum ActivationMode
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:
Constant Value Description
UNIT_IN 0 Inches.
UNIT_MM 1 Millimeters.
UNIT_PX 2 Pixels.
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
objUDC.ActivationMode = AM_SILENT
Call objUDC.Activate
objUDC.DefaultPrinter = "Universal Document Converter "
Call objUDC.AddPageFormat("My Format ", 10.25 , 25.1 , UNIT_IN)
Set itfPageFormat = objUDC.PageFormats("My Format ")
Call objUDC.RemovePageFormat("My Format ")