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 Image Converter VB.NET Library
How to convert multiple images (jpg, png, bitmap) to PDF using vb.net in WinForms, WPF application


VB.NET Guide for Converting Raster Images to PDF File Using VB.NET Sample Code





In this vb.net tutorial, you will learn how to convert multiple images to PDF file using VB.NET code in Visual Studio applications.

  • Convert multiple JPG, PNG, BMP images to PDF
  • Convert images to PDF with byte array, or Stream objects
  • Easy to enable image to PDF conversion feature in Windows Forms, WPF applications, ASP.NET using VB.NET

How to convert JPG, PNG, Bitmap images to PDF file using Visual Basic .NET

  1. Download XDoc.PDF image converter VB.NET library
  2. Install vb library to convert multiple images to PDF file
  3. Step by Step Tutorial










If you want to turn PDF file into image file format in VB.NET class, then RasterEdge PDF converting control for VB.NET can also help with this. It enables you to build a PDF file with one or more images. Various image forms are supported which include Png, Jpeg, Bmp, and Gif raster images and .NET Graphics. You can have a quick evaluation by using VB.NET programming demos illustrated below.

Furthermore, if you are a Visual C# .NET programmer, you can go to this C# tutorial page How to convert multiple jpg, png, bitmap images to PDF file using C#?







Convert multiple jpg, png, bitmap images to PDF using Visual Basic .NET code


The following steps and VB.NET source code explain how to convert multiple jpg, png, bitmap images to PDF document in Visual Basic WinForms, WPF applications.



  1. Create a new REImage array list which contains list of bmp, jpg, png image files
  2. Convert the list of REImage objects to a PDFDocument object.
  3. Save the images converted PDF file


' load 3 image files
Dim images As List(Of REImage) = New List(Of REImage)
images.Add(New REImage("C:\1.bmp"))
images.Add(New REImage("C:\1.jpg"))
images.Add(New REImage("C:\1.png"))
' build a PDF document with images
Dim doc As PDFDocument = New PDFDocument(images.ToArray())
' save document to a file
Dim outputFilePath As String = "C:\output.pdf"
doc.Save(outputFilePath)






Convert image to editable PDF file using VB.NET code


The following steps and VB.NET code explain how to convert jpg image to a editable PDF file using Visual Basic .NET. You can view more features about PDF OCR in vb.net at How to OCR PDF to text using VB.NET?



  1. Create a new emtpy DocumentSaveOption object with "FileType.DOC_PDF" defined.
  2. Define the OCR resource files location
  3. Set output pdf file is a editable PDF file.
  4. Call ImageConverter.ToDocument() method to convert jpg image to a editable PDF file.


Imports RasterEdge.XDoc.Converter

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

Dim ops As DocumentSaveOption = New DocumentSaveOption(FileType.DOC_PDF)
' The folder that contains '.traineddata' files.
ops.OcrSourcePath = "C:\Source"
' Convert to editable PDF file.
ops.IsSearchable = True

ImageConverter.ToDocument(inputFilePath, outputFilePath, ops)