LEADTOOLS Raster Imaging C DLL Help > LEADTOOLS Raster Imaging Features > Loading and Saving Images > Used Structures > 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;
}
FILEPDFOPTIONS, *pFILEPDFOPTIONS;
The FILEPDFOPTIONS structure provides information on loading PDF, PS or EPS files in LEADTOOLS.
Member |
Description |
|
uStructSize |
Size of the structure. This must be set before passing this structure to the LEAD 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. |
|
*This option affect PDF format when PDF_USE_PDFENGINE is set to use LtPdfEngine.dll, it still affects Postscript format. |
|
nDisplayDepth |
Resulting bitmap pixel depth. Possible values are: |
|
|
Value |
Meaning |
|
0 |
Auto-detect. The resulting bitmap will have the same bits per pixel as the requested page in the source PDF file. Internally, the toolkit will use the bits per pixel value of the first image item found on the page. If the page does not have any image items, the result will be 24 bits per pixel. It is recommended to use this value only when the source file is a raster PDF |
|
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 |
|
*This option affect PDF format when PDF_USE_PDFENGINE is set to use LtPdfEngine.dll, it still affects Postscript format. |
|
nTextAlpha |
Flag that indicates what 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. |
|
*This option affect PDF format when PDF_USE_PDFENGINE is set to use LtPdfEngine.dll, it still affects Postscript format. |
|
nGraphicsAlpha |
Flag that indicates what 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. |
|
*This option affect PDF format when PDF_USE_PDFENGINE is set to use LtPdfEngine.dll, it still affects Postscript format. |
|
szPassword |
String that contains the user password. This Password to be used with encrypted PDF files |
|
uFlags |
Flags for PDF or Postscript files. Possible values are: |
|
|
Value |
Meaning |
|
PDF_DISABLE_CROPPING |
Used to disable cropping for postscript files. |
|
PDF_DISABLE_CIECOLORS |
Used to disable using CIE colors for both PDF and postscript files. |
|
PDF_ENABLE_INTERPOLATE |
Used to enable interpolation for PDF files. |
|
PDF_HIDE_NOAP_ANNOTATIONS |
Used to hide annotation objects that have no appearance stream. If this flag is not set, all annotation objects will be loaded (objects who have appearance stream and who do not have appearance stream). |
|
PDF_HIDE_ALL_ANNOTATIONS |
Used to hide all annotation objects, objects who have appearance stream and who do not have appearance stream. |
|
PDF_USE_PDFENGINE |
Use LtPdfEngine for loading Pdf files. |
|
*This option affect pdf format when PDF_USE_PDFENGINE is set to use LtPdfEngine.dll, it still affects Postscript format. |
Comments
pFILEPDFOPTIONS is a pointer to a FILEPDFOPTIONS structure.
Use L_SetPDFOptions and L_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. You can 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.
The following functions make use of this structure: