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(Int32,CodecsLoadSvgOptions) Method |
public ISvgDocument GetPageSvg( int pageNumber, CodecsLoadSvgOptions options )
'Declaration
Public Overloads Function GetPageSvg( _ ByVal pageNumber As Integer, _ ByVal options As CodecsLoadSvgOptions _ ) As ISvgDocument
'Usage
Dim instance As PDFDocument Dim pageNumber As Integer Dim options As CodecsLoadSvgOptions Dim value As ISvgDocument value = instance.GetPageSvg(pageNumber, options)
public ISvgDocument getPageSvg(int pageNumber, CodecsLoadSvgOptions options)
public: ISvgDocument^ GetPageSvg( int pageNumber, CodecsLoadSvgOptions^ options )
For more information refer to RasterCodecs.LoadSvg.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.Controls Imports Leadtools.Pdf Imports Leadtools.Svg Imports Leadtools.WinForms <TestMethod> _ Public Sub PDFDocumentGetPageSvgExample() Dim sourceFileName As String = Path.Combine(LEAD_VARS.ImagesDir, "Leadtools.pdf") Dim pdfDocument As PDFDocument = New PDFDocument(sourceFileName) Dim imageViewer As ImageViewer = New Global.Leadtools.Controls.ImageViewer() imageViewer.ImageBackgroundColor = System.Drawing.Color.White imageViewer.Location = New System.Drawing.Point(10, 10) imageViewer.Dock = DockStyle.Fill imageViewer.SvgDocument = TryCast(pdfDocument.GetPageSvg(1, Nothing), SvgDocument) End Sub Public NotInheritable Class LEAD_VARS Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images" End Class
using Leadtools; using Leadtools.Codecs; using Leadtools.Controls; using Leadtools.Pdf; using Leadtools.Svg; using Leadtools.WinForms; [TestMethod] public void PDFDocumentGetPageSvgExample() { string sourceFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf"); PDFDocument pdfDocument = new PDFDocument(sourceFileName); ImageViewer imageViewer = new Leadtools.Controls.ImageViewer(); imageViewer.ImageBackgroundColor = System.Drawing.Color.White; imageViewer.Location = new System.Drawing.Point(10, 10); imageViewer.Dock = DockStyle.Fill; imageViewer.SvgDocument = pdfDocument.GetPageSvg(1, null) as SvgDocument; } static class LEAD_VARS { public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images"; }