Link Search Menu Expand Document

Doc.GetPageFile Method

Explanation Returns the SVG of the specified page as a string.

The returned SVG string can be passed to the Parse method of the XmlDOMImplementation class and manipulated as XML. It is also possible to specify the generated XMLDocument object in the BgPattern property of the Form class and display it as an SVG image.

Use the GetPageReader method when dealing with pages containing images. The GetPageReader method can handle links to image files correctly.
Call format var svgtext = Doc1.GetPageFile( page )
Return value SVG string on the specified page
Arguments integer page Page number you want to get
Exception PKG-7 The specified page file cannot be found
Example of use
Doc1.Preview = $FILE;
Doc1.ShowPage();
var svgtext = Doc1.GetPageFile(1);
Doc1.Delete();
var impl = new XmlDOMImplementation;
var xmldoc = impl.Parse(svgtext);
Form1.BgPattern = xmldoc;
    
Related item GetPageReader method