Some test text!
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.
Use the following example to convert Word to PDF in C# .NET:
.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