DrawCapturedPage

頁面版面

描述

此函式把先前以 CapturePage 函式擷取的頁面畫到目前頁面上,可以任意尺寸與位置繪製,適合頁面拼版。

CapturePage 無法把頁面從一份文件搬到另一份文件,因此呼叫 CapturePage 之前,必須先把所需頁面合併進單一文件。CaptureID 只是指向隱藏頁面的指標,因此不需要釋放。

語法

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);

參數

CaptureID先前擷取頁面時 CapturePage 函式傳回的 ID
Left目的區域左緣的座標
Top目的區域上緣的座標
Width目的區域的寬度
Height目的區域的高度

傳回值

0指定了無效的 CaptureID
1擷取頁面繪製成功