Posts

Showing posts with the label Djvu

Converting Djvu To Pdf AND Preserving Table Of Contents , How Is It Possible?

Answer : update: user3124688 has coded up this process in the script dpsprep . I don't know of any tools that will do the conversion for you. You certainly should be able to do it, but it might take a little work. I'll outline the basic process. You'll need the open source command line utilities pdftk and djvused (part of DjVuLibre). These are available from your package manager (GNU/Linux) or their websites (Windows, OS X). step 1: convert the file text First, use any tool to convert the DJVU file to a PDF (without bookmarks). Suppose the files are called filename.djvu and filename.pdf . step 2: extract DJVU outline Next, output the DJVU outline data to a file, like this: djvused "filename.djvu" -e 'print-outline' > bmarks.out This is a file listing the DJVU documents bookmarks in a serialized tree format. In fact it's just a SEXPR, and can be easily parsed. The format is as follows: file ::= (bookmarks <bookmark>*) bookmark...