Some test text!

Convert MS Office to PDFkeyboard_arrow_down

Convert MS Office (Word, Excel, PowerPoint) to PDF using JavaScript

To convert an MS Office file to a PDF document without any external third party dependencies.

    <script src="../lib/core/CoreControls.js"></script>
    <script src="../FileSaver.min.js">/* */</script>
    (async function() {
      const licenseKey = 'Insert commercial license key here after purchase';
      await PDFNet.initialize();

      // perform the conversion with no optional parameters
      const buf = await CoreControls.office2PDFBuffer('/path/to/file.docx', { l: licenseKey });

      //optionally save the blob to a file or upload to a server
      const blob = new Blob([buf], { type: 'application/pdf' });

linkAdditional font resources

WebViewer will automatically use substitute fonts hosted on a web server when a font is not embedded in the source document. The fallback fonts are hosted with PDFTron by default but if this is a concern, you can host the fonts on your own servers. See this FAQ for more details.

Get the answers you need: Support


Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our upcoming webinar to learn about how to collaborate on videos frame by frame directly in your browser

Save your seat