Download Djvu

0 views
Skip to first unread message

MargaretMargaret Haaf

unread,
Jan 8, 2024, 10:02:42 PM1/8/24
to dayturntilless

I need to open DjVu files in my program, so I'm looking for some library. It must be free library, opensource would be better. When I tried to google it, I found only links to some books about .Net in *djvu format :D

download djvu


Download https://t.co/ek6E7tSX7v



You could use ddjvu, in a shell script. That said, the output PDFs are much larger (x10), which makes it hardly worth the effort. Ubuntu has no problem reading djvu files, but if your reason is good enough, use the following script.

Simply run that in a folder with djvu files. The -scale=100 option downscales the output images, which makes the process much faster, and the output files' size more reasonable. Without it, the resulting PDFs were much larger then the originals, and took ages to convert, at least in my tests.

Personally I really like Calibre, which is a great for managing, converting, synching, sharing and editing ebooks. You can do batch conversions with it and djvu to PDF is supported.To install, just enter the following via cli:

My OS is [03/13/2020,14:35:06@]$ uname -aLinux debian 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/LinuxThat is, Debian 10 (Buster). When in Debian 9, I can make annotation in djvu file with Okular. But now I cannot. Below is a typical process of trial.

Start Okular. Open with Okular, a djvu file named 1.djvu. Now use Hilighter4 to make some annotation. Then close the file 1.djvu. Thus, a popup reads: Do you want to save your changes to "1.djvu" or discard them? (see screenshot)I choose "Save". Then another popup says:Warning-Okular You are about to save changes, but the current file format does not support saving the following elements. Please use the Okular document archive format to preserve them. So, I click "Use annotations", and then choose "Save as Okular document archive...". (See screenshot)Now also a popup reads "After saving, the current document format requires the file to be reloaded. Your undo/redo history will be lost. Do you want to continue?" I choose "Yes". (See screenshot) And the file 1.djvu is saved as 2.djvu. Now I open 2.djvu by Okular. But a popup reads "Could not open file:///.../2.djvu". See this. How can I solve this problem?

Unfortunately, I couldn't use the tool when searching among *.djvu files when searching by content. Taking into account the wide spread of *.djvu files among documents, books, and papers available via Internet, I would like to ask you, does there exist a way to search (contextually) among *.djvu files using Agent Ransack" or not. What about FileLocator Pro?

Unlike a CBZ archive, the names of the bundled images have no effect on their order in the DjVu document, rather it preserves the order you provide in the command. If you had the foresight to name them in a natural sorting order (001.djvu, 002.djvu, 003.djvu, 004.djvu, and so on), you can use a wildcard:

If you want to store the text of a document you're creating, you can embed text elements ("hidden text" in djvused terminology) in your DjVu file so that applications like Okular or DjView can select and copy the text to a user's clipboard.

My Linux distribution comes with djvutoxml and the corresponding djvuxmlparser (from package djuvlibre-bin) which can extract the metadata, resp. merge the metadata back in. Those should be available for Windows as well ( , make sure the executables are in your PATH) That metadata includes the DPI information from the file. Actual changing of the XML is fast, but extracting and merging takes a long (several minutes) time.

The DjVu format created a default page numbering which is displayed in a drop-down menu (see Image:Wind in the Willows.djvu). It is advisable to have the page numbering match that of the original book, for easier use. This can be problematic when some pages (like in introductions) are numbered in Roman numbers. In this case, one solution is to create a second DjVu file for these pages.

DjvuLibre includes djvudigital, a tool that uses Ghostscript to directly convert PDF and other PostScript files to DjVu format. However, it requires rebuilding Ghostscript from source code to include a special driver needed by djvudigital (it's part of the DjvuLibre distribution, but because of conflicting open-source licenses, it cannot be distributed legally as a binary). Once built, though, it is a very convenient tool to use; it can even convert PDF files from Google Books without any extra work. It's as easy as:

DjVuSolo is available for Linux using WineHQ. The installtion procedure of Wine HQ is dependent on the distributive and described at the link above. If WineHQ is installed, simply download the installer of DJVU Solo and run it using Wine. Open the folder with installer in terminal and run wine djvusolo3.1-noncom.exe Usually, no tricks are necessary. To access the file system use the corresponding drive inside WineHQ (By default Z).

35fe9a5643
Reply all
Reply to author
Forward
0 new messages