FILEPDFOPTIONS

typedef struct _FILEPDFOPTIONS 
{ 
   L_UINT uStructSize; 
   L_BOOL bUseLibFonts; 
   L_INT nDisplayDepth; 
   L_INT nTextAlpha; 
   L_INT nGraphicsAlpha; 
   L_UCHAR szPassword[FILEPDFOPTIONS_MAX_PASSWORD_LEN]; 
   L_UINT uFlags; 
   L_BOOL bCallbackEnabled; 
   BITMAPLOADCALLBACK pfnLoadCallback; 
   L_VOID* pCallbackUserData; 
   L_TCHAR szOutputFullPath[L_MAXPATH]; 
   L_BOOL bUseImageData; 
} FILEPDFOPTIONS, * pFILEPDFOPTIONS; 

The FILEPDFOPTIONS structure provides information about loading PDF, PS, or EPS files in LEADTOOLS toolkits.

Members

uStructSize

Size of the structure. This must be set before passing this structure to any LEADTOOLS functions.

bUseLibFonts *

Flag that indicates whether to use the library installed fonts or system fonts. Possible values are:

Value Meaning
TRUE Use the library installed fonts.
FALSE Use the system fonts.

nDisplayDepth *

Resulting bitmap pixel depth. Possible values are:

Value Meaning
1 1 bit per pixel in the resulting bitmap.
4 4 bits per pixel in the resulting bitmap.
8 8 bits per pixel in the resulting bitmap.
24 24 bits per pixel in the resulting bitmap.

nTextAlpha *

Flag that indicates which type of font anti-aliasing to use. Possible values are:

Value Meaning
1 Do not use font anti-aliasing.
2 Use 2-bit font anti-aliasing.
4 Use 4-bit font anti-aliasing.

nGraphicsAlpha *

Flag that indicates which type of graphics anti-aliasing to use. Possible values are:

Value Meaning
1 Do not use graphics anti-aliasing.
2 Use 2-bit graphics anti-aliasing.
4 Use 4-bit graphics anti-aliasing.

szPassword

String that contains the user password. This Password is used with encrypted PDF files.

uFlags *

Flags for PDF or PostScript files. Possible values are:

Value Meaning
PDF_DISABLE_CROPPING Disable cropping for PostScript files.
PDF_DETECT_TEXT_DECORATION Automatically detect whether lines are text decorations (underline or strikethrough). This is only used for PDF-to-SVG conversion or for operations that use the PDF-to-SVG conversion internally (such as the Document Converter).
PDF_DISABLE_CIECOLORS Disable using CIE colors for both PDF and PostScript files.
PDF_ENABLE_INTERPOLATE Enable interpolation for PDF files.
PDF_HIDE_NOAP_ANNOTATIONS (Deprecated.) Used to hide annotation objects that have no appearance stream. If this flag is not set, all annotation objects will be loaded (both objects having an appearance stream and those without an appearance stream).
PDF_HIDE_ALL_ANNOTATIONS (Deprecated.) Used to hide all annotation objects, objects who have appearance stream and who do not have appearance stream.
PDF_HIDE_ANNOTATIONS Hide annotation objects.
PDF_HIDE_FORMFIELDS Hide form fields.
PDF_HIDE_DIGITALSIGNATURES Hide digital signatures.
PDF_DROP_IMAGEOVERTEXT If the PDF file is ImageOverText, drop the image.
PDF_LOAD_CORRUPTED Enable PDF files to be loaded even if they have corrupted image data, and do not throw any errors.
PDF_USE_PDFENGINE Use the LtPdfEngine to load PDF files.

bCallbackEnabled

Obsolete in Version 17.5.

pfnLoadCallback

Obsolete in Version 17.5.

pCallbackUserData

Obsolete in Version 17.5.

szOutputFullPath

Obsolete in Version 17.5.

bUseImageData

Obsolete in Version 17.5.

Comments

pFILEPDFOPTIONS is a pointer to a FILEPDFOPTIONS structure.

Use LFileSettings::SetPDFOptions and LFileSettings::GetPDFOptions to set and get the PDF, PS, and EPS file options.

PDF, PS, and EPS files have no physical width or height in pixels. Use RASTERIZEDOCOPTIONS to control how the final document is rendered as a raster image. For more information, refer to RASTERIZEDOCOPTIONS.

Aliasing is the effect on all pixel devices where diagonal and curved lines have a zigzag appearance. As pixels get larger, this effect becomes more noticeable. Anti-aliasing refers to methods designed to decrease or eliminate this effect. This is done by shading the pixels along the borders of the affected lines.

**\*** This option affects the PDF format when PDF_USE_PDFENGINE is set to use LtPdfUtl.dll. It also affects the PostScript format.

The structure is used by:

Help Version 20.0.2020.4.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help