Gets the specified page as an SVG document.
public Leadtools.ISvgDocument GetPageSvg(
int pageNumber,
Leadtools.Codecs.CodecsLoadSvgOptions options
)
Public Overloads Function GetPageSvg( _
ByVal pageNumber As Integer, _
ByVal options As Leadtools.Codecs.CodecsLoadSvgOptions _
) As Leadtools.ISvgDocument
public ISvgDocument getPageSvg(int pageNumber, CodecsLoadSvgOptions options)
public:
Leadtools.ISvgDocument^ GetPageSvg(
int pageNumber,
Leadtools.Codecs.CodecsLoadSvgOptions^ options
)
pageNumber
1-based number of the page.
options
Options to use when converting the PDF data to SVG. This parameter can be null to use the default options.
The Leadtools.ISvgDocument for the specified page.
For more information refer to RasterCodecs.LoadSvg.
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Controls
Imports Leadtools.Pdf
Imports Leadtools.Svg
Imports Leadtools.WinForms
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;
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";
}
Products |
Support |
Feedback: GetPageSvg(Int32,CodecsLoadSvgOptions) Method - Leadtools.Pdf |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.