Save a Modified PDF to Document Engine
There are two ways to save a modified PDF to Document Engine while using a standalone setup:
-
Saving the whole PDF — You can export the modified PDF as an
arrayBuffer
usingInstance#exportPDF
. Then, you can convert thisarrayBuffer
to a blob and send it to your server. -
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 usingConfiguration#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.