Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Word to SVG Converting SDK

VB.NET Programming Code for Word to SVG Image Conversion

VB.NET
Home > .NET Imaging SDK > VB.NET > Convert Word to SVG
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

VB.NET Word to SVG Converter Control Overview
Why do we need to convert Word document file to SVG image format in VB.NET imaging application? The importance of VB.NET Word to SVG conversion mainly reflects on two aspects. One is used as a way to protect the content of source Word document from being copied. The other is to help web designers publish the information of target Word document file. Therefore, this VB.NET Word to SVG image conversion control add-on provides an efficient solution for programmers to protect the Word document file copyright and demonstrate Word file information on web site.
Related .net document control helps:
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
Then why do we need to convert Word document to SVG image file instead of other image formats, like GIF and JPEG using VB.NET programming code? To answer this question, you have to know some basic information of SVG image format. SVG, also known as Scalable Vector Graphics, is a popular image format that is developed from XML. Thus, compared with other raster image files, SVG (an editable image format) can be more searchable for Google engine.
Besides, as SVG is a vector graphics, it requires much less storing space than GIF or JPEG, which makes it have a faster loading speed from web server. This is also why people like to convert Word to SVG as a method to distribute Word document information on web page. What's more, SVG can be easily scaled without changing the image quality. Therefore, this VB.NET Word to SVG image converter control SDK has been widely used among web designers.
In this online tutorial page, we will tell you how to convert Word document file (DOC / DOCX) to SVG image format using VB.NET programming code in detailed steps. Here is the article layout.
  • Benefit list of this VB.NET Word to SVG converter control SDK
  • Introductions on RasterEdge VB.NET Word to SVG conversion SDK dlls
  • VB.NET method to convert Microsoft Word file to SVG image format
  • VB.NET programming example for Word to SVG image conversion
VB.NET Word to SVG Conversion Features
  • Professional VB.NET Word to SVG converting control that is written in managed C# code
  • Quickly convert Word document to SVG file by VB.NET code without using Microsoft Office Word processor
  • Converted SVG image file maintains all the content of source Word document, like texts, tables and images in VB.NET application
  • Offer APIs for VB.NET developers to convert each Word page to SVG image file
VB.NET Word to SVG Conversion SDK
This VB.NET Word to SVG conversion SDK contains two dlls, namely, RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.MSWordDocx.dll (which are compacted into small-size libraries and can be directly integrated into VB.NET project references). What should be noted here is that this version of VB.NET Word to SVG conversion control can not be used to convert a multi-page Word document to one SVG image file.
VB.NET Methods to Convert Word to SVG
In this section, we list the methods that this VB.NET Word to SVG converter control plugin has used. The converting process is not complicated: open a Word document with DOCX decoder, convert Word to REimage and save REimage to SVG image file.
Public Shared Sub SaveImageFile(image As REImage, filePath As String)
End Sub
Public Shared Sub SaveImageFile(image As REImage, filePath As String, enc As BaseEncoder)
End Sub
VB.NET Demo Code for Word to SVG Conversion
RasterEdge VB.NET Word to SVG converter control add-on allows developers to convert Word document file to SVG image page by page. That is to say, you are allowed to convert all Word pages to separate SVG image files at once or convert one specified Word page to SVG image.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "Sample.docx"

Dim doc As REDocument = REFile.OpenDocumentFile(fileName, New DOCXDecoder())
'use DOCXDecoder open a word file
Dim pageCount As Integer = doc.GetPageCount()
'get word's page count
For pgIdx As Integer = 0 To pageCount - 1
Dim aPage As BasePage = doc.GetPage(pgIdx)
'get page from REDocument
Try
Dim img As REImage = DirectCast(aPage.ToImage(), REImage)
'translate page to image
'save image
REFile.SaveImageFile(img, FolderName & "output" & pgIdx & ".svg")
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
End Try
Next
End Sub
Apart from this VB.NET Word to SVG conversion control library, RasterEdge .NET image SDK also offers other popular document to SVG converter add-ons. For instance, this VB.NET PDF to SVG library add-on is designed to help developers convert PDF to SVG in VB.NET class applications.


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com