THotPDF.BuildLoadedPageSVG Method

Builds a standalone SVG document from the selected loaded PDF page

Declaration

function BuildLoadedPageSVG(PageIndex: Integer): AnsiString; overload;
function BuildLoadedPageSVG(PageIndex: Integer;
  EmbedFonts: boolean): AnsiString; overload;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the loaded page
EmbedFontsTrue writes the glyphs of embedded fonts into the SVG as outlines, so the page looks the same where those fonts are not installed. False, and the overload without this parameter, leaves text to the viewer's installed fonts

Return value

Returns the complete SVG document, or an empty string when the page cannot be exported

Usage notes

Related APIs