DANewPages

Direct access functionality, Page manipulation

Description

Adds a number of new pages to the end of the document. All new pages have a standard size of 612x792 points.

Syntax

Delphi

function TPDFlib.DANewPages(FileHandle, PageCount: Integer): Integer;

ActiveX

Function PDFlib::DANewPages(FileHandle As Long, PageCount As Long) As Long

DLL

int DLDANewPages(int InstanceID, int FileHandle, int PageCount);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageCountThe number of pages to add to the document

Return values

0The specified FileHandle was not valid
Non-zeroThe total number of pages in the document after the new pages were added