RASTERPDFINFO

Summary

The RASTERPDFINFO structure provides information about a raster PDF file created with the PDF support available in the LEADTOOLS PDF and the Document and Medical toolkits.

Syntax

typedef struct _RASTERPDFINFO 
{ 
   L_UINT uStructSize; 
   L_BOOL bIsLeadPdf; 
   L_INT nBitsPerPixel; 
   L_INT Format; 
   L_INT nWidth; 
   L_INT nHeight; 
   L_INT XResolution; 
   L_INT YResolution; 
   RASTERPDFVERSION Version; 
} RASTERPDFINFO, *pRASTERPDFINFO; 

Members

uStructSize

Size of the structure. This must be set before passing this structure to the LEAD functions. Use sizeof(RASTERPDFINFO) to calculate this value.

bIsLeadPdf

Flag that indicates whether the PDF file was saved with the PDF support available in the LEADTOOLS PDF and the Document and Medical toolkits.

Value Meaning
TRUE The file was created with the PDF support available in the LEADTOOLS PDF and the Document and Medical toolkits. The other members of this structure are guaranteed to work. Also, L_DeletePage will work.
FALSE The file was not created with the PDF support available in the LEADTOOLS PDF and the Document and Medical toolkits.

nBitsPerPixel

The bits/pixel of the raster image in PDF file. Horizontal display resolution in dots per inch. You can use it 0 to use the current screen horizontal resolution.

Format

The format of the raster image in PDF file. Possible values are:

Value Meaning
FILE_RAS_PDF [146] Raster PDF uncompressed.
FILE_RAS_PDF_G3_1D [147] Raster PDF with G3 1D Compression.
FILE_RAS_PDF_G3_2D [148] Raster PDF with G3 2D Compression.
FILE_RAS_PDF_G4 [149] Raster PDF with G4 Compression.
FILE_RAS_PDF_JPEG [150] Raster PDF with JPEG 4:4:4 Compression.
FILE_RAS_PDF_JPEG_422 [151] Raster PDF with JPEG 4:2:2 Compression.
FILE_RAS_PDF_JPEG_411 [152] Raster PDF with JPEG 4:1:1 Compression.
FILE_RAS_PDF_LZW [179] Raster PDF with LZW Compression.
FILE_RAS_PDF_JBIG2 [188] Raster PDF with JBIG2 Compression.
FILE_RAS_PDF_CMYK [333] Raster PDF with uncompressed CMYK data.
FILE_RAS_PDF_LZW_CMYK [334] Raster PDF with LZW Compressed CMYK data.

nWidth

Width of the image, in pixels.

nHeight

Height of the image, in pixels.

XResolution

Horizontal resolution of the first image.

YResolution

Vertical resolution of the first image.

Version

Value that indicates the PDF file version. For possible values, refer to RASTERPDFVERSION.

Comments

pRASTERPDFINFO is a pointer to a RASTERPDFINFO structure.

Usage

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

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.