ExportPageSVGToFile
Gráficos vetoriais, SVG, saída de arquivo
Descrição
Exporta uma página PDF para um arquivo SVG UTF-8 autossuficiente
Sintaxe
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);Parâmetros
| 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 |
Valores retornados
Retorna 1 depois que o arquivo SVG UTF-8 completo é gravado, ou 0 quando a validação, a extração, a codificação ou a saída do arquivo falham
Observações
O destino contém o mesmo SVG autossuficiente retornado por ExportPageSVG. A variante ANSI da DLL interpreta
FileName conforme o modo ANSI configurado
LastErrorCode retorna 119 para página, opções ou nome de arquivo inválidos e 522 quando a exportação ou a saída em arquivo falha