Some test text!

WebViewer – JavaScript PDF Document Viewer Library
WebViewer – JavaScript PDF Document Viewer Library

Sample C# .NET code for using PDFTron SDK to convert Word documents to PDF without any external dependencies or Microsoft Office licenses. Perform .docx to PDF .NET conversion on a Linux or Windows server to automate Word-centric workflows, or entirely in the user's client (web browser, mobile device). Combine the .docx to PDF .NET conversion functionality with our Viewer to display or annotate Word files on all major platforms, including Web, Android, iOS, Xamarin, UWP, and Windows.







  • View, annotate, and collaborate in real-time
  • Watermark, stamp, form fill, sign, search, and more
  • Client-side PDF editing (without a server)
  • Document security, DRM, encryption, redaction
  • Overprint, ICC color management, color separation
  • PDF, Microsoft Office, and 30+ formats
  • Document viewer for JavaScript


  • Customize and style the UI, or build your own
  • Create custom controls and logic
  • Integrate into your workflows
  • Robust API

Integrate Quickly Into Your Project

Use the following example to convert Word to PDF in C# .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);

Try our SDK for free today

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