I want to do this:
User upload 1 pdf, the server convert its to xod
User is now able to open de document on my site and see it in the webviewer
User need to split this document in multiple documents.
In server i read all the structure getting the byte range of all the elements needed in a page canvas drawing (text.xml, page.xml, thumb.jpg, images, annotations, etc)
I save this information in a database so user can split files logically
When a user enter the new created documents, i can get the compound pages from the db and render de pages and still getting the content from the same XOD.
Voila!.. currently i am doing just that! but only with images, I take a screenshot of each pdf page and save it! so my user can split one big document in little documents.
I am using the same as you are using! a canvas in which I draw the image and the annotations! but i want to draw the vectors so the quality of the text is better and the size on my server