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 | 已成功绘制捕获页面 |