DADrawCapturedPage

直接存取功能、頁面版面

Description

把先前以 DrawCapturedPage 函式擷取的頁面繪製到指定頁面。原始頁面必須來自同一份文件(FileHandle 相同)

語法

Delphi

Function TPDFlib.DADrawCapturedPage(FileHandle, DACaptureID, DestPageRef: Integer; PntLeft, PntBottom, PntWidth, PntHeight: Double): Integer;

ActiveX

Function PDFlib::DADrawCapturedPage(FileHandle As Long, DACaptureID As Long, DestPageRef As Long, PntLeft As Double, PntBottom As Double, PntWidth As Double, PntHeight As Double) As Long

DLL

int DLDADrawCapturedPage(int InstanceID, int FileHandle, int DACaptureID, int DestPageRef, double PntLeft, double PntBottom, double PntWidth, double PntHeight);

參數

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函式傳回的控制代碼
DACaptureID由 DACapturePage 函式傳回的擷取 ID
DestPageRef由 DAFindPage 或 DANewPage 函式傳回的頁面參照
PntLeft目的地矩形左緣的水平座標,以點為單位、從頁面左緣量起
PntBottom目的地矩形下緣的垂直座標,以點為單位、從頁面下緣量起
PntWidth目的地矩形的寬度,以點計
PntHeight目的地矩形的高度,以點計

傳回值

0指定的 FileHandle、PageRef 或 DACaptureID 無效
1擷取頁面繪製成功 double PntWidth, double PntHeight);