How to C#: Converter
Use Convert SDK for C#
Install, Deploy and Distribute
  |  
Home ›› XDoc.Converter ›› C# Converter: Install, Deploy and Distribute

C#: How to Install, Deploy and Distribute XDoc.Converter


Tell Users How to Install RasterEdge XDoc.Converter SDK in Your C# Application






To successfully use our XDoc.Converter toolkit in your C# application for performing high performance documents and images conversion, your computer should meet the following system requirements. Also, complete and accurate converter SDK installation is required. Please read details as below.




System Requirements



Windows XP SP3 or any later version


Microsoft .NET Framework or any later version




XDoc.Converter SDK Installation



At the very beginning, C# users should make sure that RasterEdge XDoc.Converter for .NET is installed into Visual Studio (2005+) .NET project successfully.


Add XDoc.Converter references to your C# project;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.JBIG2.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Converter.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.AdvancedCleanup.Core.dll


  RasterEdge.XImage.OCR.dll


  RasterEdge.XImage.OCR.Tesseract.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use the namespaces


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Converter;


Add the following C# demo code to your project (PDF to Png conversion demo).




// Define input and output files path.
String inputFilePath = @"***.pdf";
String outputFilePath = @"***.png";

// Create the SaveOption for image.
ImageSaveOption op = new ImageSaveOption(FileType.IMG_PNG);

// Set flag to false.
op.UseDefaultResolution = false;

// Set horizontal resolution of the output image to 300 pixels per inch.
op.ResolutionX = 300F;

// Set vertical resolution of the output image to 300 pixels per inch.
op.ResolutionY = 300F;

// Convert PDF file to Png image.
DocumentConverter.ToImage(inputFilePath, outputFilePath, op);