Some test text!

Loading...
Guides

Create PDF document using JavaScript

Creating a PDF document is similar to creating a XOD document except it requires a few more steps: we need to initialize the PDF worker based on the backend type for the browser we are using.

// Instantiate a Document object.
const licenseKey = 'Insert commercial license key here after purchase';
const doc = await Core.createDocument('/path/file.pdf', { l: licenseKey });

// doc is Document instance and ready use

Get the answers you need: Support

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use