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>IUDCPrinter>IProfile>IAdjustments>ICrop

ICrop


The ICrop interface is used to configure document margin cropping during conversion.

Properties

Integer ColorTolerance

Defines the maximum allowed (percentage) tolerance in the color of the margins specified by the MarginsColor property. Only available if the Mode property has the value CRP_ADVANCED. Valid range: between 0 and 100. It is both readable and writable.

Integer MarginsColor
Defines the color of the margins in the source document (as an RGB value) to be cropped. Only available if the Mode property has the value CRP_ADVANCED. It is both readable and writable.

Enum Mode
Defines the source document margin cropping algorithm. It is both readable and writable.
ConstantValueDescription
CRP_NONE0Do not crop
CRP_AUTO1Software automatically identifies and crops any white margins
CRP_ADVANCED2Software only identifies and crops margins of a color specified using the MarginsColor property to within a maximum tolerance specified using the ColorTolerance property.

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.Adjustments.Crop.Mode = CRP_ADVANCED itfProfile.Adjustments.Crop.MarginsColor = RGB(0, 255, 0) itfProfile.Adjustments.Crop.ColorTolerance = 10


© fCoder SIA Acerca de fCoder SIA | Mapa del sitio