DADrawCapturedPage

直接访问功能、页面布局

描述

将使用 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 函数返回的句柄
DACaptureIDDACapturePage 函数返回的捕获 ID
DestPageRefDAFindPage 或 DANewPage 函数返回的页面引用
PntLeft目标矩形左边缘的水平坐标,从页面左边缘起以点为单位测量
PntBottom目标矩形底边的垂直坐标,从页面底边起以点为单位测量
PntWidth目标矩形的宽度,以点为单位测量
PntHeight目标矩形的高度,以点为单位

返回值

0指定的 FileHandle、PageRef 或 DACaptureID 无效
1已成功绘制捕获的页面 double PntWidth, double PntHeight)