IPageSetup
The IPageSetup interface is designed to control principal output file page settings, such as size, resolution, etc.
Properties
Defines page height using the units of measure set in the Units property. Please note that whenever the size of a page is modified, the page format should also be modified and saved in one of the formats supported (if there is a page format that matches), or as a custom format. Valid range: between 10 and 3251. It is both readable and writable.
String FormName
Defines page format name. It is both readable and writable.
Enum Orientation
Sets output file page orientation. Please note, that if it is modified, the values in Width and Height need not be swapped. It is both readable and writable.
Constant | Value | Description |
---|---|---|
PO_PORTRAIT | 0 | Portrait |
PO_LANDSCAPE | 1 | Landscape |
Integer ResolutionX
Defines horizontal page resolution for printing (in DPI). Valid range: between 50 and 6000. It is both readable and writable.
Integer ResolutionY
Defines vertical page resolution for printing (in DPI). Valid range: between 50 and 6000. It is both readable and writable.
Enum Units
Defines the units of measure for page height and width. It is both readable and writable.
Constant | Value | Description |
---|---|---|
UNIT_IN | 0 | Inches |
UNIT_MM | 1 | Millimeters |
UNIT_PX | 2 | Pixels |
Float Width
Defines the page width using the units of measure set in the Units property. Please note, that whenever page size is modified, the page format should be modified as well and saved in one of the existing formats supported (if there is a page format that matches) or to the Custom format. Valid range: between 10 and 3251. It is both readable and writable.
Examples
Visual Basic 6
Dim objUDC As IUDC Dim itfPrinter As IUDCPrinter Dim itfProfile As IProfile Set objUDC = New UDC.APIWrapper Set itfPrinter = objUDC.Printers("Universal Document Converter") Set itfProfile = itfPrinter.Profile itfProfile.PageSetup.Units = UNIT_IN itfProfile.PageSetup.Width = 10.5 itfProfile.PageSetup.Height = 15.3 itfProfile.PageSetup.Orientation = PO_LANDSCAPE itfProfile.PageSetup.ResolutionX = 600 itfProfile.PageSetup.ResolutionY = 600