DrawCapturedPageMatrix

Page layout

Description

This function draws a page previously captured with the CapturePage function onto the current page. The size/position/rotation is specified using a transformation matrix, allowing for advanced 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.DrawCapturedPageMatrix(CaptureID: Integer; M11, M12, M21, M22, MDX, MDY: Double): Integer;

ActiveX

Function PDFlib::DrawCapturedPageMatrix(CaptureID As Long, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double) As Long

DLL

int DLDrawCapturedPageMatrix(int InstanceID, int CaptureID, double M11, double M12, double M21, double M22, double MDX, double MDY);

Parameters

CaptureIDThe ID returned by the CapturePage function when a page was previously captured Matrix component
M11
M12Matrix component
M21Matrix component
M22Matrix component
MDXMatrix component
MDYMatrix component

Return values

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