THotPDF.SaveLoadedPageAsSVG Method

Writes the SVG document that BuildLoadedPageSVG builds for a loaded page to a file

Declaration

function SaveLoadedPageAsSVG(PageIndex: Integer;
  const FileName: TFileName): boolean; overload;
function SaveLoadedPageAsSVG(PageIndex: Integer;
  const FileName: TFileName; EmbedFonts: boolean): boolean; overload;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the loaded page
FileNamePath of the SVG file to write
EmbedFontsTrue writes the glyphs of embedded fonts as outlines; False, and the overload without this parameter, leaves text to the viewer's installed fonts. See BuildLoadedPageSVG

Return value

Returns True when the file was written; False when the page index is out of range, the page cannot be exported, or the file cannot be written

Usage notes

Related APIs