- Views: 16
- Report Article
- Articles
- Computers
- Programming
Converting pdf to image in c#
Posted: Dec 17, 2018
Convert pdf to image using C# and VB.NET in any programming of your Winforms, WPF and ASP.NET web applications.
Converting pdf to jpg in c#, the iDiTect.Converter provide jpg compressor embedded in the c# library. output the jpeg image will take the smaller size, and contains the full information of the original pdf document.
C# sample code for pdf to jpeg conversion:
PdfToImageConverter converter = new PdfToImageConverter();
converter.Load(File.ReadAllBytes("sample.pdf"));
//Default is 72, the higher DPI, the bigger size out image will be
converter.DPI = 96;
//The value need to be 1-100. If set to 100, the converted image will take the
//original quality with less time and memory. If set to 1, the converted image
//will be compressed to minimum size with more time and memory.
converter.CompressedRatio = 80;
for (int i = 0; i
Convert pdf to image using C# and VB.Net in any programming of your Winforms, Wpf and Asp.Net web applications.