DynaPDF Manual - Page 590
Previous Page 589 Index Next Page 591

Function Reference
Page 590 of 874
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().
This function is implemented as macro in C/C++. In prior DynaPDF versions the macro name was
PDF_WRONG_PWD() which is still defined. However, for consistency among different
programming languages the new macro name IsWrongPwd() should be used.
Previous topic: IsBidiText, IsColorPage
Next topic: LineAnnot, Measure lines