This is a djvu version of the questions I asked before for pdf files. I have tried a similar idea as fred has given to the previous question. But I am now stuck at how to get the number of pages of a djvu file, because I don't know which command can be used for that purpose.
For the sake of completion, I now just rephrase the question here:
I was wondering if there are some ways to extract title and pagenum of each page in a djvu file? Either by some applications, or by programming in some programming language with some djvu libraries?
The title of each page is supposed to be the first line of the page, for example, in slides/presentation files.
The output is supposed to be a text file, with following format:
title_of_first_page pagenum_of_first_page title_of_second_page pagenum_of_second_page ...
Thanks and regards!