Need help with savedoc() functionality
<iframe [src] ="fileurl" #iframe>
</iframe>
<button (click)="saveDoc()">
</button>
Having trouble accessing edited PDF content in Typescript:
/*api call to get document blob data on load*/
var fileurl = new blob([res.body],{type:application/pdf});
fileurl = URL.createObjectUrl(fileurl);
savedoc(){//need logic to access edited pdf content as blob}
I can view and write in editable fields, but unsure how to save/access the edited PDF content in blob format to send back to server. Tried using ng2-pdf-viewer library with no success. Need to replace existing PDF on server.
How do I access edited PDF content?
Considering triggering saveAs event from code to save iFrame PDF locally. Using Window.showSaveFilePicker();but saved file appears corrupted or missing.