DrawCapturedPage

Page layout

Description

This function draws a page previously captured with the CapturePage function onto the current page. It can be drawn at any size and position, allowing for imposition of pages.

You cannot use CapturePage to move pages from one document to another so all the required pages must be merged into a single document before calling CapturePage. The CaptureID is just a pointer to a hidden page therefore does not need to be released.

Syntax

Delphi

function TPDFlib.DrawCapturedPage(CaptureID: Integer; Left, Top, Width, Height: Double): Integer;

ActiveX

Function PDFlib::DrawCapturedPage(CaptureID As Long, Left As Double, Top As Double, Width As Double, Height As Double) As Long

DLL

int DLDrawCapturedPage(int InstanceID, int CaptureID, double Left, double Top, double Width, double Height);

Parameters

CaptureIDThe ID returned by the CapturePage function when a page was previously captured
LeftThe co-ordinate of the left edge of the destination area The co-ordinate of the top edge of the destination area
TopThe width of the destination area
Width
HeightThe height of the destination area

Return values

0An invalid CaptureID was specified
1The captured page was drawn successfully