Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 499

Previous Page 498   Index   Next Page 500

Function Reference
Page 499 of 750
IsColorPage
Syntax:
SI32 pdfIsColorPage(
const PPDF* IPDF,
// Instance pointer
LBOOL GrayIsColor) // Treat gray as color
This function checks whether a page is a color page or if all graphic elements of the page use black &
white only. If the parameter GrayIsColor is true, gray shades are treated as color. The page which
should be checked must be opened with the function EditPage() beforehand.
Complex color spaces such as Lab, Separation, DeviceN, Colored Tiling Patterns, and Shadings are
always treated as color. The function does not return when a color is set, the color must be used by
an object.
Return values:
If an object of the page uses a color, the return value is 1. If no object uses a color the return value is
0. A negative return value indicates that an error occurred.
IsEmptyPage
Syntax:
SI32 pdfIsEmptyPage(
const PPDF* IPDF) // Instance pointer
The function checks whether a page is empty. The page which should be checked must be opened
with the function EditPage() beforehand. The function does not check whether the buffer size of a
page is zero to determine whether a page is empty. Instead, the content stream will be parsed until a
visible object can be found.
Return values:
If no visible object can be found the return value is 1. If a visible object can be found the return value
is 0. A negative return value indicates that an error occurred.
IsWrongPwd
Syntax:
#define IsWrongPwd(ErrCode)
// C/C++
Function IsWrongPwd(ByVal ErrCode As Integer) As Boolean // Visual Basic
function IsWrongPwd(ErrCode: Integer): Boolean;
// Delphi
The function returns true is the supplied error code indicates that a password is required to decrypt
the PDF file. The error code must be a return value of the function OpenImportFile() or
OpenImportBuffer().
 

Previous topic: IsBidiText

Next topic: LineAnnot