In the WebViewer documentation, I see the following entry that indicates it is possible to extract just the changes to the annotations for the current document, in an XFDF command format:
Exporting modified annotations as XML command to server
// Inside AnnotationPanel.js, create an AJAX request to the server, with the data being the command
// string returned by AnnotationManager.GetAnnotCommand(). Note that server_url and doc_id
// are read in as the document is initially loaded
if (readerControl.server_url == null) {
console.warn("Not configured for server-side annotation saving.");
return;
}
var am = readerControl.docViewer.GetAnnotationManager();
var xfdfString = am.GetAnnotCommand();
etc...
Which I can then run through this code:
$server_dir = "C:/wamp/www/server/";
$xfdf_doc = FDFDoc::CreateFromXFDF($server_dir . $filename);
$xfdf_doc->MergeAnnots($command);
$xfdf_doc->SaveAsXFDF($server_dir . $filename);
To update the "server" copy of the document's annotations.
Is there equivalent functionality in PDFNet?
Thanks,
Mike
Full WebViewer doc link, for reference.