Some test text!
PDFTron SDK C# code sample for converting Word documents to PDF without any external dependencies or Microsoft Office licenses. Create a PDF from a .docx file in C# on a Linux or Windows server to automate document workflows, or entirely in the user's client (web browser, mobile device). Combine Word to PDF conversion with our Viewer to display or annotate Word files on all major platforms, including Web, Android, iOS, Xamarin, UWP, and Windows. Learn more about our C# PDF Library and Office Document Conversion Library .
Convert Word to PDF C# sample, get started with a free trial of PDFTron SDK by clicking the link below.
.NET
Convert to PDF
// Start with a PDFDoc (the conversion destination)
using (PDFDoc pdfdoc = new PDFDoc())
{
// perform the conversion with no optional parameters
pdftron.PDF.Convert.OfficeToPDF(pdfdoc, inputFilename, null);
// save the result
pdfdoc.Save(outputFilename, SDFDoc.SaveOptions.e_remove_unused);
}
PDFTron SDK
COMPANY