View Single Post
Old 06-22-2010, 04:12 PM   #44
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by CoolDragon View Post
Hi Mackx, where is the source code for your port of Xournal?
The last sources that I posted to the forum are here. The difference with the last releases for R2.0 is not that big. If you want I can also send the sources with the next update that I am going to make?
I looked a little deeper into the xournal code for merging annotations. It consists of two part, one to import scribbles from metadata.db files (the part I added) and one to export xournal files, including background pdf as a new pdf file (which already existed in the original code).
I am now not sure if the approach that was choosen for xournal is also a good appraoch for a PC app. Xournal creates a new pdf file and adds to each page the original page as a bitmap (rendered with poppler) and all objects that are created with xournal (including the imported annotations). A PC app should probably keep as much of the structure of the old file and only add extra parts for the annotations. (I.e. create extra objects for the annotations and add them to the /Contents of the original doc. )

B.t.w. the pdf format documentation of Adobe is really good if you want to learn the details of the format. I am looking into it now to see if I can support some of the pdf 1.5 features in the exporting code of xournal, currently only pdf 1.4 is handled correctly as far as I can see.
Mackx is offline   Reply With Quote