Universal Document Converter
Información general
Descargas
Comprar
Tutoriales
Desarrolladores
Soporte técnico
Acerca de fCoder SIA


      Búsqueda en el sitio
   


      Conversiones populares
Adobe PDF a JPEG
Word Document a PDF
Hojas de cálculo Excel a PDF
PowerPoint a JPEG
Diseño Visio a PDF
Diseño AutoCAD a TIFF
Página web a JPEG
Convertir de cálculo Excel a PDF
Convertir DjVu a PDF
Convertir una página web a PDF

      Tutorial de vídeo
Ver el tutorial



Página principal>Developer Solutions>Interfaces>IUDC>IPageFormat

IPageFormat


The interface is designed to provide access to page format settings for formats from the Universal Document Converter format list. Please, note that page formats cannot be changed. The only option is to create new formats using the AddPageFormat method of Interface IUDC.

Properties

Float Height

Defines page height for a format out of the Universal Document Converter format list. The unit of measure is defined by the Units property. Valid range is between 10 and 3,251 mm. Read only.

Integer ID
Contains the system ID of a format from the Universal Document Converter format list. Read only.

Boolean IsCustom
Determines whether the current format was created using the AddPageFormat method or is a built-in Universal Document Converter format. Read only.
ValueDescription
FALSEBuilt-in format
TRUEFormat created using AddPageFormat method

String Name
Contains the page format name of a format from the Universal Document Converter format list. Read only.

Enum Units
Defines the units of measure used for page width and height for a format out of the Universal Document Converter format list. Read only.
ConstantValueDescription
UNIT_IN0Inches
UNIT_MM1Millimeters
UNIT_PX2Pixels

Float Width
Defines page width for a format out of the Universal Document Converter format list. The unit of measure is defined by the Units property. Read only.

Examples

Visual Basic 6

Dim objUDC As IUDC Dim itfPageFormat As IPageFormat Dim sMsg As String Set objUDC = New UDC.APIWrapper Set itfPageFormat = objUDC.PageFormats("A4") sMsg = "Page format name is: " + itfPageFormat.Name sMsg = sMsg & Chr(10) & Chr(13) sMsg = sMsg & "Page format ID = " & itfPageFormat.ID sMsg = sMsg & Chr(10) & Chr(13) If itfPageFormat.IsCustom Then sMsg = sMsg & itfPageFormat.Name + " format is created by user" sMsg = sMsg & Chr(10) & Chr(13) Else sMsg = sMsg & itfPageFormat.Name + " format is system" sMsg = sMsg & Chr(10) & Chr(13) End If Select Case itfPageFormat.Units Case UNIT_IN sMsg = sMsg & "Page Height = " & itfPageFormat.Height & " inches" sMsg = sMsg & Chr(10) & Chr(13) sMsg = sMsg & "Page Width = " & itfPageFormat.Width & " inches" Case UNIT_MM sMsg = sMsg & "Page Height = " & itfPageFormat.Height & " millimeters" sMsg = sMsg & Chr(10) & Chr(13) sMsg = sMsg & "Page Width = " & itfPageFormat.Width & " millimeters" Case UNIT_PX sMsg = sMsg & "Page Height = " & itfPageFormat.Height & " pixels" sMsg = sMsg & Chr(10) & Chr(13) sMsg = sMsg & "Page Width = " & itfPageFormat.Width & " pixels" End Select Call MsgBox (sMsg)


© fCoder SIA Acerca de fCoder SIA | Mapa del sitio