ExportPageSVGToFile

Đồ họa vector, SVG, đầu ra tệp

Mô tả

Xuất một trang PDF ra tệp SVG UTF-8 tự chứa

Cú pháp

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);

Tham số

PageSố trang (bắt đầu từ 1)
OptionsCùng bit mask tùy chọn mà ExportPageSVG nhận, với giá trị 0 chọn PDF_SVG_DEFAULT
FileNameDestination SVG file name

Giá trị trả về

Trả về 1 sau khi file SVG UTF-8 hoàn chỉnh được ghi, hoặc 0 khi validation, trích xuất, encode hoặc ghi file thất bại

Ghi chú

Đích chứa đúng SVG tự chứa mà ExportPageSVG trả vềBiến thể DLL ANSI diễn giải

FileName theo chế độ ANSI đã cấu hình

LastErrorCode là 119 khi trang, tùy chọn hoặc tên tệp không hợp lệ, và 522 khi xuất hoặc ghi tệp thất bại

Xem thêm

ExportPageSVG, ExportPageHTML, SaveToFile