ExportPageSVGToFile
Vector graphics, SVG, file output
Description
Exports one PDF page to a self-contained UTF-8 SVG file
Syntax
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);Parameters
| Page | The one-based page number |
|---|---|
| Options | The same option bitmask accepted by ExportPageSVG, with zero selecting PDF_SVG_DEFAULT |
| FileName | Destination SVG file name |
Return values
Returns 1 after the complete UTF-8 SVG file is written, or 0 when validation, extraction, encoding, or file output fails
Remarks
The destination contains the same self-contained SVG returned by ExportPageSVG
The ANSI DLL variant interprets FileName according to the configured ANSI mode
LastErrorCode is 119 for an invalid page, options, or file name and 522 when export or file output fails