Visual C#.NET: Convert PDF to Other Formats
How to convert PDF to other formats using C#.NET
Yiigo.Image for .NET PDF Plugin has those following functionalities:
This document provides comprehensive Visual C#.NET samples for guiding developers to convert PDF to other formats using Yiigo.Image for .NET. Find more PDF conversion tutorials on VB.NET PDF Conversion, Web Imaging Viewer PDF Conversion Support and Convert PDF in .NET Winforms.
PDF Conversion with C#.NET Sample Code Requirements
If you want to convert PDF to other formats in Visual C#.NET, make sure that you have installed. Start to Convert
- Open and run your Microsoft Visual Studio;
- Choose either "Visual C# Projects" in "New Project" dialog box;
- Choose "Windows Application" in the "Templates" List and name it "YiigoImagingPdfConvertCsharp";
- Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
- In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library and Yiigo.Imaging.Net.Pdf.Read.dll;
- Add it to your Visual C# applications;
- Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.PdfRead;
// Write conversion function to document image applications private void PdfConversion(string PdfinFile, string PdfoutFile, ImageEncoder encoder) { using (ImageSource src = new FileSystemImageSource(PdfinFile, true)) { using (Stream s = File.OpenWrite(outFile)) { encoder.Save(s, src, null); } } }
// Convert PDF to image, for example PdfConversion(1.pdf, 1.gif, new GIFEncoder());
// PDF Batch Conversion, for example BatchConversion(1.pdf, 1.gif, new GIFBatchEncoder()); BatchConversion(2.pdf, 2.gif, new GIFBatchEncoder()); BatchConversion(3.pdf, 3.gif, new GIFBatchEncoder()); BatchConversion(4.pdf, 4.gif, new GIFBatchEncoder()); | 
Products Overview Tech Specs Features Other Plugins Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner
|