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 | 目标 SVG 文件名 |
返回值
完整的 UTF-8 SVG 文件写入后返回 1;验证、提取、编码或文件输出失败时返回 0
备注
目标文件包含由 ExportPageSVG 返回的同一份自包含 SVG
ANSI DLL 变体根据配置的 ANSI 模式解释 FileName
页面、选项或文件名无效时 LastErrorCode 为 119,导出或文件输出失败时为 522