How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

PDF Converter VB.NET Library
How to convert PDF to SVG files in VB.NET


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





In this C#.NET tutorial, you will learn how to convert, export PDF pages or whole document to Scalable Vector Graphics (SVG) files. using C# PDF library in .NET Windows, ASP.NET web applications.

  • PDF file to SVG files conversion
  • Convert single PDF page to SVG web files
  • Fully compatible with moden web browser with Web Open Font Format (WOFF) generated.

How to convert PDF file to SVG web files programmatically using C#

  1. Download XDoc.PDF SVG conversion C# library
  2. Install C# library to convert Adobe PDF to SVG files
  3. Step by Step Tutorial












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. Here is the tutorial for C# developers How to convert PDF to SVG files in C#. Developers are able to convert both single and multiple PDF document pages into SVG images using simple VB.NET demo codes.

asp.net remove text from pdf online, asp.net tiff viewer, asp net view word document in browser, display pdf in mvc, how to view pdf file in asp.net using c#, free pdf preview in asp net c#, how to write pdf file in asp.net c#.

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.

You could view more about C# PDF Converter library: excel to pdf using c#, pdf to jpg c#, c# convert pdf to image, convert image to pdf using c#, c# convert pdf to html open source, convert pdf to tiff using c#, c# convert docx to pdf without word.

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.





How to convert PDF file to SVG web files using VB.NET code?


The steps below and C#.NET example source code show how to convert a PDF document to SVG web files in C# application.

  1. Define a PDFDocument object with an existing PDF file loaded
  2. Use PDFDocument.ConvertToVectorImages() method to convert PDF page to SVG files.
    One PDF page will produce one SVG file (.svg). And all other web resource files will be generated under some folders, such as web fonts (.woff), image files



Dim inputFilePath As String = "C:\1.pdf"

Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' Path of the output folder for all SVG files.
Dim outputFolder As String = "C:\svg"
' Prefix of all output SVG file names. 
Dim fileNamePrefix As String = "File-"
' Convert each page of PDF to a SVG file with file name: [fileNamePrefix][Page Index].svg
' Eg.: File-0.svg, File - 1.svg, ...
doc.ConvertToVectorImages(ContextType.SVG, outputFolder, fileNamePrefix, RelativeType.SVG)






PDF to SVG Converter Options


You can define the output SVG and other web resource files through method ConvertToVectorImages parameters. View the parameters details at How to apply PDF to SVG convertion settings using C#










How to convert a single PDF page to SVG web files using VB.NET code?


The VB.NET example source code show how to convert a single PDF page to SVG web files in Visual Basic .NET application.



Dim inputFilePath As String = "C:\1.pdf"

Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' Path of the output folder for the SVG file.
Dim outputFolder As String = "C:\svg"
' Prefix of the output file name. 
Dim fileNamePrefix As String = "File-"
' Convert the 1st page to a SVG file with file name: File-0.svg
Dim page As PDFPage = doc.GetPage(0)
page.ConvertToVectorImage(ContextType.SVG, outputFolder, fileNamePrefix, RelativeType.SVG)