Save a Modified PDF to Document Engine

There are two ways to save a modified PDF to Document Engine while using a standalone setup:

  1. Saving the whole PDF — You can export the modified PDF as an arrayBuffer using Instance#exportPDF. Then, you can convert this arrayBuffer to a blob and send it to your server.

  2. Saving the changes only — If you just want to save the changes made by the user on the original PDF, you can use Instance#exportInstantJSON to export a JSON containing all the changes. You can store this separately and apply it when you load the original PDF the next time using Configuration#instantJSON. With this approach, you won’t have to repeatedly save the PDF file, and you can use the original PDF every time.

For more information, refer to our guide on incremental saving.