THotPDF.ExtractLoadedPagesToPDF Method
方法摘要: THotPDF.ExtractLoadedPagesToPDF Method
声明
function ExtractLoadedPagesToPDF(const PageRange: string; const OutputPath: TFileName): boolean;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
PageRange | 从 1 开始的页面范围,例如 1,3-4;留空表示选择所有页面 |
OutputPath | 目标 PDF 文件路径 |
返回值
至少有一个所选页面写入目标文件时返回 True
使用说明
- PageRange 使用从 1 开始的页码,留空表示选择所有页面
- OutputPath 不能为空,且已加载的源文档必须至少包含一页