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 不可為空,且已載入來源至少要有一頁