ExportPageSVGToFileA

向量圖形、SVG、檔案輸出

描述

ExportPageSVGToFile 的 ANSI 版本

字串參數接受 ANSI 文字,其餘行為與寬字元字串版本完全相同

語法

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 Long

DLL

int DLExportPageSVGToFile(int InstanceID, int Page, int Options, const wchar_t * FileName);
int DLExportPageSVGToFileA(int InstanceID, int Page, int Options, const char * FileName);

傳回值

完整的 UTF-8 SVG 檔案寫出後傳回 1;驗證、擷取、編碼或檔案輸出失敗時傳回 0

備註

目的地內容與 ExportPageSVG 傳回的自足 SVG 相同ANSI DLL 變體解讀

FileName 依設定的 ANSI 模式解讀

LastErrorCode 為 119 表示頁面、選項或檔名無效,522 表示匯出或檔案輸出失敗

另請參閱

ExportPageSVG, ExportPageHTML, SaveToFile