CombinePDF_GetNumberOfPages() As Integer
Description
Returns the number of pages in the PDF document that was opened by the last CombinePDFPagesToDIB function call.
The CombinePDF_GetNumberOfPages and CombinePDF_IsPageRotated functions can be used to retrieve which pages were rotated by the CombinePDFPagesToDIB function, if the bAutoRotateToPortrait parameter of the CombinePDFPagesToDIB function was set to TRUE.
Parameters
None
Return value
The number of pages in the PDF document that was opened by the last CombinePDFPagesToDIB function call.
Example
To retrieve which pages were rotated by CombinePDFPagesToDIB:
// The bAutoRotateToPortrait parameter must be set to true:
BiPDF.CombinePDFPagesToDIB(filename, password, xdpi, ydpi, true, flags);
int pages = BiPDF.CombinePDF_GetNumberOfPages();
for (int i = 0; i < pages; i++)
{
bool rotated = BiPDF.CombinePDF_IsPageRotated(i);
}