PICTools Programmer's Reference
OP_PDF2D

OP_PDF2D: Read a DIB from PDF

OP_PDF2D supports reading a PDF file and returning a given pages embedded image. (See opcode specific data structure.)

General Notes

Reading an Image

In order to read an image from a page in a given PDF file, place the PDF file in the Get queue prior to calling REQ_INIT.  Either the entire file, or a partial file may be placed in the queue, but if a partial file is used, then seeking must be supported.  For more information, please see the OP_D2PDF discussion regarding seek operations.

Prior to REQ_INIT the page desired for reading must be specified using the ImageNumber member of the PIC_PARM structure.  During REQ_INIT information about the image to be extracted is read and returned via the PIC_PARM structure.  In particular, the Head and ColorTable members as well as the PDF specific StripSize and WidthPad members are initialized.  Using this information, a Put queue must be allocated of at least StripSize.  The decoded DIB will be placed in the Put queue during processing.

 

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback