Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.23
|
Leadtools.Pdf Assembly > Leadtools.Pdf Namespace > PDFDocument Class > GetPageSvg Method : GetPageSvg(RasterCodecs,Int32,CodecsLoadSvgOptions) Method |
public ISvgDocument GetPageSvg( RasterCodecs codecs, int pageNumber, CodecsLoadSvgOptions options )
'Declaration
Public Overloads Function GetPageSvg( _ ByVal codecs As RasterCodecs, _ ByVal pageNumber As Integer, _ ByVal options As CodecsLoadSvgOptions _ ) As ISvgDocument
'Usage
Dim instance As PDFDocument Dim codecs As RasterCodecs Dim pageNumber As Integer Dim options As CodecsLoadSvgOptions Dim value As ISvgDocument value = instance.GetPageSvg(codecs, pageNumber, options)
public ISvgDocument getPageSvg(RasterCodecs codecs, int pageNumber, CodecsLoadSvgOptions options)
public: ISvgDocument^ GetPageSvg( RasterCodecs^ codecs, int pageNumber, CodecsLoadSvgOptions^ options )
This method does not perform anything beyond simply using the Leadtools.Codecs.RasterCodecs object passed (or the temporary one created) to load the PDF page:
rasterCodecsObject.LoadSvg(document.FileName, pageNumber, options)
For more information, refer to RasterCodecs.LoadSvg.
Once the page is obtained as a Leadtools.ISvgDocument object, you can use this object to perform any other image functionality with LEADTOOLS, such as setting it into a viewer control, extracting text, saving to other formats, etc.
Since a Leadtools.Codecs.RasterCodecs object is required by this method, you can either pass one through the codecs parameter and the method will use this object to load the page. This is helpful if you need to change the default Leadtools.Codecs.RasterCodecs load options or subscribe to any of the events that will occur during loading. If none of that is required, you can simply pass null for the codecs parameter and this method will internally create, use and dispose a temporary Leadtools.Codecs.RasterCodecs object.
To get a raster image of any page in a PDF document, use GetPageImage.