DynaPDF Manual - Page 527

Previous Page 526   Index   Next Page 528

Function Reference
Page 527 of 787
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().
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: How to calculate the image size?, IsBidiText, IsColorPage

Next topic: LineAnnot, Measure lines

Start Chat