Link Search Menu Expand Document

Doc.GetPageReader Method

Explanation Returns a File object that opens an SVG file on the specified page in read mode.
Added since Ver.4.0.5
The returned File object can be passed as XML to the Load method of the XmlDOMImplementation class. 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.

Unlike the GetPageFile method, the GetPageReader method returns an SVG in a File object, so it can handle links to image files correctly.
Call format var svgfile = Doc1.GetPageReader( page )
Return value File object that opened the SVG file of the target page
Arguments integer page Page number you want to get
Exception RTM-3 Could not open the file
Example of use
Doc1.Preview = $FILE;
Doc1.ShowPage();
var svgfile = Doc1.GetPageReader(1);
Doc1.Delete();
var impl = new XmlDOMImplementation;
var xmldoc = impl.Load(svgfile);
svgfile.Close();
Form1.BgPattern = xmldoc;
    
Related item GetPageFile method