Some test text!

Convert Word documents to PDF using C#
Convert Word documents to PDF using C#

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 .






Sample Code

Convert Word to PDF C# sample, get started with a free trial of PDFTron SDK by clicking the link below.



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);

Try our SDK for free today

PDFTron live tech update & run-through: Jan 20th at 11 am PT