VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
Convert PDF to SVG
  |  
Home ›› XDoc.PDF ›› VB.NET PDF: Convert PDF to SVG

VB.NET PDF - Convert PDF to SVG in VB.NET in VB.NET


Use VB.NET Demo Code to Convert PDF Document to SVG Image in VB.NET Project



Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.


RasterEdge .NET Imaging Conversion SDK supports various conversions between documents and images. VB.NET developers can use the PDF conversion control to render and convert PDF document to SVG vector image in VB.NET application. Developers are able to convert both single and multiple PDF document pages into SVG images using simple VB.NET demo codes.


Preparations made to convert PDF document to SVG vector image in VB.NET application are quite simple. You just need to install Microsoft .NET Framework 2.0 or later versions and Visual Studio 2005, 2008, 2010 or 2012 to create VB.NET project for PDF to SVG conversion. Then, you may check whether your Windows system is supported by our PDF document conversion control. It supports Windows 2000 / XP / Vista / Windows 7 and Windows Server 2000 / 2003 / 2008.


Note: Using our PDF conversion control, you may need to render your PDF document to REImage (our self-defined image object), and then convert the REImage to SVG image in VB.NET project.




VB.NET Demo Codes for PDF to SVG Conversion



Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Raster.dll


  RasterEdge.XDoc.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.Imaging.SVG.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PDF;


Developers are free to use the following VB.NET demo code to render target PDF document page to REImage and convert the REImage object to SVG vector image respectively.




' convert svg
Dim inputFilePath As String = Program.RootPath + "\\" + "1.pdf"
Dim outputDir As String = Program.RootPath + "\\"
Dim outputFileName As String = "fileName"

Dim doc As PDFDocument = New PDFDocument(inputFilePath)
doc.ConvertToVectorImages(ContextType.SVG, outputDir, outputFileName, RelativeType.SVG)