How to generate annotated PDF document outside of WebViewer? I understand that this should be (or normally) accomplished by using PDFNet SDK (CMIIW) in a breeze, but they do not have the license for it. My first thought was invoking the ‘Download’ overlay menu by clicking it in background but it will trigger a file save dialog which is not suitable for this task’s requirement as it needs to be done in background. Our current PDFTron setup is using ‘states’, this is custom. There are 2 type of states: read (default) and edit. When user click a button in header menu to enter the edit mode, all the annotation tools will be available for them. When they exit the edit mode, we will fetch down the current doc’s annotations, and use getFileData to send the file’s binary data to backend (which is PHP). PHP will finally construct a new file using these byte data.
Is this approach acceptable? Or is there any way I can compose a full file instead of just a byte data (without using Full API) out from WebViewer, then send it (upload) to backend without writing a custom file creation function in PHP side? Would appreciate any feedback from others who probably have deal with this before. TIA!