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 | 擷取頁面繪製成功 |