ExportPageSVGToFile
向量圖形、SVG、檔案輸出
描述
將單一 PDF 頁面匯出成自足的 UTF-8 SVG 檔案
語法
Delphi
Function TPDFlib.ExportPageSVGToFile(Page, Options: Integer; Const FileName: WideString): Integer;ActiveX
Function PDFlib::ExportPageSVGToFile(Page As Long, Options As Long, FileName As String) As LongDLL
int DLExportPageSVGToFile(int InstanceID, int Page, int Options, const wchar_t * FileName);
int DLExportPageSVGToFileA(int InstanceID, int Page, int Options, const char * FileName);參數
| Page | 頁碼(1 起算) |
|---|---|
| Options | 與 ExportPageSVG 接受的相同選項位元遮罩;零表示 PDF_SVG_DEFAULT |
| FileName | Destination SVG file name |
傳回值
完整的 UTF-8 SVG 檔案寫出後傳回 1;驗證、擷取、編碼或檔案輸出失敗時傳回 0
備註
目的地內容與 ExportPageSVG 傳回的自足 SVG 相同ANSI DLL 變體解讀
FileName 依設定的 ANSI 模式解讀
LastErrorCode 為 119 表示頁面、選項或檔名無效,522 表示匯出或檔案輸出失敗