FillPDFBlock

块、交互

描述

把另一个已打开文档的页面放进 PDF 块的矩形,完成个性化

语法

Delphi

Function FillPDFBlock(Page, BlockIndex: Integer; SourceDocumentID,
  SourcePage: Integer; Options: Integer): Integer;

ActiveX

Function PDFlib::FillPDFBlock(Page As Long, BlockIndex As Long, SourceDocumentID As Long, SourcePage As Long, Options As Long) As Long

DLL

int DLFillPDFBlock(int InstanceID, int Page, int BlockIndex, int SourceDocumentID, int SourcePage, int Options);

参数

Page, BlockIndex块选择器
SourceDocumentID已打开源文档的文档 id,加载后由 SelectedDocument 报告
SourcePage从 1 开始的源页码
Options位 1:填充成功后删除块注释;位 2:拉伸到精确矩形而不保持宽高比

返回值

页面放置成功返回 1;块不存在、不是 PDF 块或导入失败时返回 0

备注

默认情况下源页面保持宽高比并在矩形内居中

另请参阅

GetBlockCount, AddBlock, GetBlockType, GetBlockRect