.NET Total Library speeds up developing document management solutions from scratch or enhancing existing applications to deal document manipulation with ease. API not only manages Microsoft Office documents but also handles PDF, HTML, Images TIFF, JPG, PNG, BMP and SVG, Email files, Video formats, GIS data formats and much more. It is complete set of document management and manipulation solution APIs without any software dependencies. Programmers can easily create, update, render, print and convert between most popular formats within any .NET based applications.
Convert Word to PDF
Total API supports not only inter conversion of Microsoft Word formats but also converting Word to PDF, HTML, Images, EPUB, Markdown and XPS. Process of conversion is simple. Load the Document via Document class and just call the Save method with target format. It’s so simple. Developers can check the conversion result before code integration of Word to PDF
C# - Word to PDF Conversion
var doc = new Document("Input.docx"); | |
doc.Save("Output.pdf"); |
Convert PDF to Images
API supports converting PDF to Images, Powerpoint, Excel and other formats. For PDF to Image conversion, let’s consider the JPG image as target file. Process is, load PDF file using Document class and initialize JpegDevice class object and render PDF to JPEG via Process method Load JPEG file by using Image class and finally call the Save method.
C# - PDF to Image Conversion
// supports PDF, CGM, EPUB, TeX, PCL, PS, XPS, MD, MHTML, XSLFO, HTML file formats | |
// load PDF with an instance of Document | |
var document = new Document("input.pdf"); | |
// create an object of jpegDevice | |
var renderer = new JpegDevice(); | |
// convert a particular page and save the image in JPEG format | |
renderer.Process(document.Pages[1], "output.jpeg"); | |
// load JPEG file | |
var image = Image.Load("output.jpeg"); | |
// supports Dicom, Jpeg2000, Apng, Psd, Dxf, Wmf, Emz, Wmz, Tga, Svgz file formats | |
// save JPEG to PSD file format | |
image.Save("output.psd", new PsdOptions()); |
Convert Excel to Word and PowerPoint
For converting Microsoft Excel formats to different files including Word and PowerPoint, Relevant sub APIs involoved of main Aspose.Total for .NET API. Process of converting Excel files to Word document, load EXCEL file using Workbook class and convert EXCEL to PDF firstly and set SaveFormat to Auto. Then load the converted PDF file using Document class and call the Save method and set Doc, Docx as SaveFormat. Code also listed for Microsoft Excel to Powerpoint conversion.
C# - JSON to Excel Conversion
// load the EXCEL file using Workbook class | |
var book = new Aspose.Cells.Workbook("input.csv"); | |
// save EXCEL as PDF | |
book.Save("pdfOutput.pdf", Aspose.Cells.SaveFormat.Auto); | |
// load the PDF file using Document class | |
var document = new Aspose.Pdf.Document("pdfOutput.pdf"); | |
// save document in DOC format | |
document.Save("output.doc", SaveFormat.Doc); |
C# - Excel to JSON Conversion
// load the EXCEL file using Workbook class | |
var book = new Aspose.Cells.Workbook("input.csv"); | |
// save EXCEL as PDF | |
book.Save("pdfOutput.pdf", Aspose.Cells.SaveFormat.Auto); | |
// load the PDF file using Document class | |
var document = new Aspose.Pdf.Document("pdfOutput.pdf"); | |
// save document in PPTX format | |
document.Save("output.pptx", SaveFormat.Pptx); |