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 函数返回的句柄 |
|---|---|
| DACaptureID | DACapturePage 函数返回的捕获 ID |
| DestPageRef | DAFindPage 或 DANewPage 函数返回的页面引用 |
| PntLeft | 目标矩形左边缘的水平坐标,从页面左边缘起以点为单位测量 |
| PntBottom | 目标矩形底边的垂直坐标,从页面底边起以点为单位测量 |
| PntWidth | 目标矩形的宽度,以点为单位测量 |
| PntHeight | 目标矩形的高度,以点为单位 |
返回值
| 0 | 指定的 FileHandle、PageRef 或 DACaptureID 无效 |
|---|---|
| 1 | 已成功绘制捕获的页面 double PntWidth, double PntHeight) |