C# Document Converter Library
C# PDF Convert: How to Convert MS PPTX to Adobe PDF Document
Provide Free Demo Code for PDF Conversion from Microsoft PowerPoint in C# Program
RasterEdge.com is specializing in documents and images conversion, especially for PDF document conversion. Our XDoc.Converter for .NET can help you to easily achieve high performance PDF conversion from Microsoft PowerPoint (.ppt and .pptx)
C# Tutorial: How to Convert PowerPoint to PDF
Copy the C# coding example below to your .NET project to perform fast PDF conversion from Microsoft PowerPoint.
// Used to register all DLL assemblies.
WorkRegistry.Reset();
// Define input and output files path.
String inputFilePath = @"***.pptx";
String outputFilePath = @"***.pdf";
// Convert PowerPoint to PDF and show conversion result.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_PDF);
switch (result)
{
case ConvertResult.NO_ERROR:
Console.WriteLine("Success");
break;
case ConvertResult.FILE_TYPE_UNSUPPORT:
Console.WriteLine("Fail: can not convert to PDF, file type unsupport");
break;
case ConvertResult.FILE_TYPE_UNMATCH:
Console.WriteLine("Fail: input file is not a document");
default:
Console.WriteLine("Fail: unknown error");
break;
}