Hi,
we just integrated the new PDF Editor. I understand, that for each saving, a new PDF document is created.
![image](https://forum.onlyoffice.com/uploads/default/original/2X/4/4cc372ceaeb466a0590ce09c7c2cec06db73f9f2.png)
But how do we get the newly created PDF server-side, via the callback URL? When doing a “forcesave” I always get a “status”:4 (document not modified) back.
Thanks!
Hi @ipdoc1 ![:wave: :wave:](https://forum.onlyoffice.com/images/emoji/twitter/wave.png?v=12)
Could you please provide a bit more detail about your scenario?
- Are you using a custom integration?
- Can you walk us through the exact steps you are taking when attempting to save and retrieve the new PDF document?
- Any additional information about your integration configuration would also be helpful.
This is the current integration:
self.docEditor = new DocsAPI.DocEditor('onlyOfficePlaceholder', {
"document": {
"fileType": fileType,
"title": self.model.get('originalDocumentName'),
"url": self.documentUrl,
"key": self.model.get('keyPair'),
"permissions": {
"edit": !result.readonly && self.model.get('signed') !== 1 && self.model.get('sent') !== 1
}
},
"type": type,
"width": "100%",
"editorConfig": {
"callbackUrl": self.saveUrl,
"user": {
"id": username,
"name": username
},
"region": 'de-DE',
"customization": {
"compactHeader": true,
"help": false,
"toolbarHideFileName": true,
"toolbarNoTabs": true,
"plugins": false,
"reviewDisplay": 'markup',
"integrationMode": "embed"
}
},
"events": {
"onAppReady": function () {
// self.resize({target: self.$el});
self.$el.find('iframe').css('height', self.$el.height() - CONST.DASHLET_HEADER_HEIGHT);
},
"onDocumentReady": function () {
},
"onDocumentStateChange": function (e) {
}
}
});
After editing the PDF, we just click on our custom save button that calls OnlyOffice to “forcesave” the document. Then, the callbackUrl gets triggered, but only a “error” / “status” : 4 is included as parameters (no document changes detected).
On the PDF annotations are placed, so actually it should have changes.
The integration works fine with the document or spreadsheet editor.
Does the PDF editor behave differently regarding saving? Are annotations saved differentely?
Hey @ipdoc1 ![:wave: :wave:](https://forum.onlyoffice.com/images/emoji/twitter/wave.png?v=12)
Sorry for the late response.
Thank you for your explanation.
Please note that the ability to save changes directly to the current document is planned for implementation in version 8.2.
At the moment, the feature to save changes directly to the existing PDF has not been implemented.
We recommend revisiting this issue after the release of version 8.2 when the functionality to save changes directly will be available.