[<<][pool][>>][..]
Sat Feb 27 21:33:28 CET 2010
dicing djvu documents
I have this relic from the last time I tried plumbing to make djvu
files.
tom@del:~/bin$ cat pgm2djvu
cat $1 | erode | pgmtopbm | pbmtodjvurle | csepdjvu -d 300 - $2
Now I want to slice a djvu file into four quadrants, and put each
quadrant in a separate file.
1. How to unpack a djvu document into separate png/pam files?
ddjvu
2. How to ... pdf
* generate pgms: pdftoppm -gray doc.pdf pageprefix
* pipe them through: | pnmcrop | pgmtopbm | pbmtodjvurle | csepdjvu -d 150 - |
* pack djvus: djvm -c lazy-peval.djvu *.pgm.djvu
3. djvu again:
pdftoppm -r 300 -gray doc.pdf pageprefix
cjb2 is the encoder from djvu-libre
[Reply][About][<<][pool][>>][..]