ImageGear for C and C++ on Windows v19.3 - Updated
AT_REC_PDF_PAGE_OPTIONS
API Reference Guide > Recognition Component API Reference > Recognition Component Structures Reference > AT_REC_PDF_PAGE_OPTIONS

Specifies options for creating a PDF page from recognition output.

Declaration:

 
Copy Code
struct tagAT_REC_PDF_PAGE_OPTIONS
{
   AT_BOOL ForceProportional;
   enum enumIGCompressions ImageCompression;
   AT_BOOL PreserveGraphics;
   AT_BOOL SegmentImage;
   AT_BOOL SpecifyImageCompression;
   AT_BOOL VisibleImage;
   AT_BOOL VisibleText;

} AT_REC_PDF_PAGE_OPTIONS, *LPAT_REC_PDF_PAGE_OPTIONS;

Structure Members:

Name Type Description
ForceProportional AT_BOOL Force all text to use proportional fonts (no monospaced font detection).
ImageCompression enum enumIGCompressions Compression to use for image (only used if SpecifyImageCompression is TRUE).
PreserveGraphics AT_BOOL Preserve graphics (only applicable if bVisibleText is TRUE and bVisibleImage is FALSE).
SegmentImage AT_BOOL Whether to segment the image into different chunks based on their recognized type or leave it as one large image. Only has an effect if VisibleImage is enabled. SpecifyImageCompression and ImageCompression will be ignored if this is enabled. Picture portions of the image will be converted using their current format while other regions of the image will be converted to 4-bit, and where possible 1-bit. JPEG compression will be used for 24-bit RGB regions, Deflate for 2 through 8 bit, and G4 for 1-bit.
SpecifyImageCompression AT_BOOL Specify image compression yes/no (if no, compression is chosen based on bit depth).
VisibleImage AT_BOOL Create the recognized image as an image covering the whole page.
VisibleText AT_BOOL Create visible text elements (otherwise, the text hidden if an image is also created).