CombinePDFPagesToDIB

 

CombinePDFPagesToDIB(szFileName As String, szPassword As String, iXDPI As Integer, iYDPI As Integer, bAutoRotateToPortrait As Boolean, dwFlags As Integer) As Long

 

Description

The pdf_CombinePDFPagesToDIB function reads all pages from a PDF file, rotate the pages to portrait if necessary, and combine the pages together vertically into a single bitmap (DIB). These steps are done in a single function for memory efficiency.

 

Parameters

 

String

szFileName

File name, including full path of the PDF file to open.

String

szPassword

Password for the PDF file if there is any. NULL or an empty string can used if the password is not known.

Integer

iXDPI

Horizontal resolution of the output image in dots per inch.

Integer

iYDPI

Vertical resolution of the output image in dots per inch.

Boolean

bAutoRotateToPortrait

If true, the function will automatically rotate every landscape page to portrait.

Integer

dwFlags

Options for opening the file. The following values can be combined with the | operator:

 

BIVPDF_SHOW_PASSWORD_DIALOG(1)

If the PDF file is password protected, the BiPDF.dll will show a dialog where the password can be entered by the user.

 

BIVPDF_DRAW_ANNOTATIONS (2):

Draw the annotations.

 

BIVPDF_DRAW_FORMS (4):

Draw form controls (text-boxes, buttons, etc.).

 

BIVPDF_COMBINE_REMOVE_SPACE_BETWEEN_PAGES (8):

Remove white space between the pages automatically.

 

Return value

Returns a handle to the combined DIB, or NULL if an error occurred.