Save PDFs to an ArrayBuffer Using JavaScript

Exporting a PDF to an ArrayBuffer can be done with a single API call to instance.exportPDF():

const documentBuffer = await instance.exportPDF();

The resolved ArrayBuffer can be then handled as desired, for example you can send it to your server or download it to a local storage.

When exporting a document, there are several options available. Refer to our guides on flattening annotations and incremental saving for more details.

Auto saving can be configured for different scenarios and use cases. You can find more information in our auto save guide.