NewPage

Page manipulation

Description

Create a new page. The new page is added to the end of the document, and will have the same width and height as the selected page.

NewPage resets the drawing state to its defaults: fill, line and text colour; line width, dash pattern, cap style, join style and miter limit; text size, which becomes 12 points; text alignment and text rendering mode; underline and highlight, with their colour, dash pattern, width and distance; character and word spacing, text rise, text scaling and line spacing; shading and tiling patterns; transparency, blend mode, overprint and black point compensation; the clipping path and a graphics state applied with SetGraphicsState. Only the selected font is kept, together with the kerning mode set with UseKerning. Settings of the document and of the library, such as the origin, the scale, the measurement units and the precision, are not affected.

Syntax

Delphi

Function TPDFlib.NewPage: Integer;

ActiveX

Function PDFlib::NewPage() As Long

DLL

int DLNewPage(int InstanceID);

Return values

0The page could not be added. This should never occur.
Non-zeroThe page number of the page that was added