I was wondering how to move a page to another place in a djvu file?

For example, I wish page 7 can be moved to be between page 10 and 11, where all the page numbers are specified relative to the original djvu file. In other words, page 8~10, 7 in the original djvu file becomes page 7~9, 10 in the new djvu file.

I have heard of djvused, but am not sure if it can be of help.

My OS is Ubuntu 10.10.

Thanks and regards!


Solution 1 - simple

Download the English version of DJVU TOY. This allows you to split and merge documents as you see fit. It is very straight forward. Here are the man pages. You will need Google translate to translate the pages into English. I use Chrome so it was not a problem.

Simply split your entire document. Change the page ordering/numbering in the folder and then merge.

Solution 2 - more difficult, djvuextract is poorly documented.

You can use DJVUEXTRACT to extract pages from a DJVU file and DJVUMAKE to reassemble the file.

All are part of the DJVULibre project. It is a pretty cool library and will do most things you need. It runs on Ubuntu too of course.

  • Thanks! I am not sure about the manpages for the two commands. Suppose the djvu file's name is myfile.djvu, how shall I generate another new file new.djvu, with page 8~10, 7 in the original djvu file being page 7~9, 10 in the new djvu file? – Tim Jun 7 '11 at 13:25
  • @Tim Did you get sorted? If not, I will look at this tomorrow. Could you explain what you need, I am still a little confused... – slotishtype Jun 8 '11 at 21:06
  • Thanks! My intention was to move page 7 to page 10. I still don't quite understand how that can be achieved by DJVUEXTRACT and DJVUMAKE? – Tim Jun 8 '11 at 22:12
  • So, page 10 becomes page 7, and page 10 becomes page 11, i that correct? So the order in the new file is 1, 2, 3, 4, 5, 6, [*7 removed], 8, 9, [*7 inserted], 10, 11, 12 ... – slotishtype Jun 8 '11 at 22:25
  • Almost, page 7 in the old file becomes page 10 in the new file, i.e., 1, 2, 3, 4, 5, 6, [*7 removed], 8, 9, 10, [*7 inserted], 11, 12 ... – Tim Jun 9 '11 at 0:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.