Saving annotation in XML file increases PDF length
Posted: Wed Aug 28, 2013 3:14 pm
Hello,
I'm currently working on a project that need to separate the save of the annotations the users added and the original pdf file.
While I'm using the file's hash to compare it with the version that is in the DB to see if I need to save it (after a page rotation for example) in my DB because it has changed or if I just need to save the annotations.
My current program does increase the PDF file length and consequently changes the file's hash, i'm not burning any annotations on it and I keep saving them in an XML file.
So is it possible to add annotation without modify the original file ?
Thanks for your answer.
I'm currently working on a project that need to separate the save of the annotations the users added and the original pdf file.
While I'm using the file's hash to compare it with the version that is in the DB to see if I need to save it (after a page rotation for example) in my DB because it has changed or if I just need to save the annotations.
My current program does increase the PDF file length and consequently changes the file's hash, i'm not burning any annotations on it and I keep saving them in an XML file.
So is it possible to add annotation without modify the original file ?
Thanks for your answer.