Usage:
- Edit
file:///path/to/file.djvu
; - Compile;
- Run with pipe
>output.txt
; - Done!
http://sourceforge.net/projects/libdjvu/
-DDLL_EXPORT
You might need to remove virtual
in some file in libdjvu if linker fails.
Usage:
file:///path/to/file.djvu
;>output.txt
;http://sourceforge.net/projects/libdjvu/
-DDLL_EXPORT
You might need to remove virtual
in some file in libdjvu if linker fails.
#include <cstdio> | |
#include "libdjvu/DjVmNav.h" | |
#include "libdjvu/DjVuDocument.h" | |
int main(int argc, char** argv) { | |
GUTF8String urlStr("file:///path/to/file.djvu"); | |
GURL url(urlStr); | |
GP<DjVuDocument> doc = DjVuDocument::create(url); | |
doc->wait_for_complete_init(); | |
GP<DjVmNav> nav = doc->get_djvm_nav(); | |
int count = nav->getBookMarkCount(); | |
for (int i = 0; i < count; ++i) { | |
GP<DjVmNav::DjVuBookMark> bookmark; | |
nav->getBookMark(bookmark, i); | |
printf("%s\n", (const char*) bookmark->displayname); | |
} | |
return 0; | |
} |