VB.NET PDF to PNG Library
How to convert PDF to PNG image files using VB.NET in Windows Forms, WPF application
Visual Basic .NET PDF to PNG Converter without Acrobat, open source library, such as itextsharp, pdfsharp, imagemagick.
In this VB.NET tutorial, you learn how to convert PDF page to jpg image using VB.NET in .NET Windows Forms, WPF application.
How to convert PDF file to JPG images using Visual Basic .NET?
- Key feature list of this VB.NET PDF to PNG image converter control add-on
- For C#.NET developers, please view How to convert PDF to png images using C#
- VB.NET PDF to PNG image converting SDK dlls
- VB.NET method to convert PDF document to PNG image file in .NET class application
- VB.NET programming example for PDF to PNG image conversion in Microsoft .NET Framework
- Frequently asked questions about this VB.NET PDF to PNG image converter control plugin
- Programmed in 100% managed C# code and compatible with cross-platform .NET applications
-
convert pdf to tiff c#,
convert pdf to html string c#,
create pdf with images c#,
convert pdf to jpg c# codeproject,
convert txt to pdf c#,
c# convert docx to pdf without word,
pdf to image c# free.
- Standalone and robust .NET solution that conducts high-fidelity PDF to PNG conversion using VB.NET code
- Convert PDF document to PNG image format preserving all original content in VB.NET class application
- Able to convert each PDF document page to separate PNG image file at once by VB.NET code
-
edit pdf in asp.net mvc,
asp.net view excel in browser,
asp.net preview pdf,
display pdf in mvc,
asp.net add text to pdf file,
how to add header and footer in pdf using itextsharp in asp.net,
pdf viewer in asp.net c#.
- Allow VB.NET developers to convert one PDF page (which can be randomly selected) to PNG image file
- Support converting PDF document file to other raster and vector image file formats, like SVG and GIF
PDF to PNG Image Options in VB.NET Code
With XDoc.PDF for VB.NET, you can easily convert single PDF file or mutliple PDF documents into PNG images using VB.NET.
The converted PNG image options are applied in VB class "ImageOutputOption".
- Type: The converted image type should be ImageType.PNG
- Color: Output png image is Monochrome, Gray, Color.
- PngInterlance: True, create an Interlaced PNG; False, create a Non-interlaced PNG.
Non-interlaced PNG encodes an image from start to finish; but Interlaced PNG encodes a whole
image at low quality at beginning and then on each successive pass it encodes more of the detail,
until the complete image has been processed.
- PngFilter:
In PNG, a filter algorithm could be applied before compression which makes the image data for optimum compression.
None: the scanline is transmitted unmodified.
Sub: it transmits the difference between each byte and the value of the corresponding byte of the prior pixel.
Up: it is just like the Sub filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor.
Average: it uses the average of the two neighboring pixels (left and above) to predict the value of a pixel.
Paeth: it computes a simple linear function of the 3 neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value.
- Zoom: Set zoom value to 2F. Use more pixels to render the page.
- Resolution: Set image resolution value in the PNG file.
Dim options As ImageOutputOption = New ImageOutputOption()
' Set output image type.
options.Type = ImageType.PNG
' Output image Is grayscale.
options.Color = ColorType.Gray
' Set interlaced flag to true.
options.PngInterlance = True
' Set filter type to SUB
options.PngFilter = FilterPNG.SUB
' Set zoom value to 2F. Use more pixels to render the page.
options.Zoom = 2.0F
' Set resolution value in the PNG file to 300 dpi.
options.Resolution = 300
How to convert PDF page to PNG image using VB.NET
The following steps and sample VB.NET code will show how to convert a PDF page to PNG image in vb.net code.
- Define a ImageOutputOption object with PNG image options
- Define a new PDFDocument with an existing PDF file loaded
- Get a PDFPage object from the first page of the PDF document
- Call PDFPage.ConvertToImage() to convert PDF page to a PNG image file with image options applied.
Dim inputFilePath As String = "C:\1.pdf"
Dim outputFilePath As String = "C:\output.png"
Dim options As ImageOutputOption = New ImageOutputOption()
' Set output image type.
options.Type = ImageType.PNG
' Output image Is grayscale.
options.Color = ColorType.Gray
' Set interlaced flag to true.
options.PngInterlance = True
' Set filter type to SUB
options.PngFilter = FilterPNG.SUB
' Set zoom value to 2F. Use more pixels to render the page.
options.Zoom = 2.0F
' Set resolution value in the PNG file to 300 dpi.
options.Resolution = 300
' Open file And get the target page
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
Dim page As PDFPage = doc.GetPage(0)
' Convert page to a PNG image
page.ConvertToImage(options, outputFilePath)