View Single Post
Old 05-14-2012, 01:34 PM   #31
Randy11
Wizard
Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.Randy11 ought to be getting tired of karma fortunes by now.
 
Posts: 1,138
Karma: 1577094
Join Date: Oct 2008
Device: Samsung EB60, Onyx M92, Onyx Max2
Quote:
Originally Posted by slex View Post
Variant 1
----------
pdf2djvu filename.pdf -o filename.djvu
This is quick and dirty, but it doesn't produce the best results (more suitable for conversion of text-based pdfs). The output djvu file is comparable in size with the original pdf.

Variant 2
----------
You can get better results if you put the pdf file in a separate directory. Then
pdfimages filename.pdf f
This will produce image files named f-001.pbm (if the pdf is black and white) ... or f-001.ppm (if it has color).

You have several options from then on.

Variant 2B
~~~~~~
Get the program gscan2pdf from the repositories.
You can add pbm files directly into gscan2pdf. Then export as djvu. The file will be smaller than the original pdf - probably 2-3 times - but you are unlikely to achieve the compression in Variant 2A.
Thanks Slex for yours explanations, it's woks fine !

On my Linux, I must compile and test later ScanTailor.
Randy11 is offline   Reply With Quote