AddDocumentPart

文档部件、变量数据、PDF 2.0

描述

在现有层级部件下添加子文档部件

语法

Delphi

Function TPDFlib.AddDocumentPart(ParentPartID, StartPage, EndPage: Integer): Integer;

DLL

int DLAddDocumentPart(int InstanceID, int ParentPartID, int StartPage, int EndPage);

ActiveX

Function PDFlib::AddDocumentPart(ParentPartID As Long, StartPage As Long, EndPage As Long) As Long

参数

ParentPartID此层级返回的根或内部部件标识符
StartPage, EndPage包含端点的从 1 开始叶节点范围,或使用 0 和 0 创建内部部件

返回值

成功时返回正的子部件标识符,输入无效时返回 0

备注

叶范围不能与已分配给另一叶的页面重叠,叶部件不能接收子项

子项存储在有界块中,因此超大记录批次不需要单一巨型 PDF 数组

另请参阅

SetDocumentPartPageRange, SetDocumentPartMetadata