View Single Post
Old 02-03-2010, 10:05 AM   #13
luite
Connoisseur
luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.luite has a complete set of Star Wars action figures.
 
Posts: 82
Karma: 256
Join Date: Feb 2010
Location: Netherlands
Device: dr1000
Quote:
Originally Posted by godel10 View Post
The possibility to use djvu files as pdf ones is really exciting. Thank you very much for this tool.
By the way, one final question. Now that we use the same viewer than for pdf files, do you think it may be possible to have some software merging scribbles for djvu files?
It's certainly possible in theory, but I'm afraid that I don't have enough time to write such a program (perhaps later ).

If you can render the scribbles for a single page to an image with the correct resolution, it should be fairly easy to do using imagemagick and djvulibre. The steps for each page with scribbles would consist of:
- extract and decompress djvu page ( djvulibre - ddjvu )
- render scribbles for the page to an image file (own tool, does one already exist?)
- create composite image with scribbles and page ( imagemagick - convert and composite )
- convert image to djvu (djvulibre - not sure which program should be used)
- replace page in original document ( djvulibre - djvm)

The only real issue is the second step, which is not specific to djvu. Recompressing pages may increase the file size of the document (or decrease quality if lossy compression is used).

Last edited by luite; 02-03-2010 at 10:34 AM.
luite is offline   Reply With Quote