Is there some quality loss during conversion between pdf and djvu?
For example, when using djvu2pdf and pdf2djvu among other applications.
- If yes, how can the quality be preserved as much as possible during conversion?
Yes, there is, for several reasons:
2- PDf can also contain raster images inside, but even in this scenario, both formats (PDF and djvu) use different compression algorithms, djvu uses JB2 and PDF can use almost everything else but not JB2. Most of these compression algorithms are lossy, so when you go from one format to the other all images inside must be decompressed and recompressed again, lossing information in the process.
This depends on the direction of the conversion, if you are going from vector-based PDFs to djvu, you could try increasing the resolution of your output file. If you are going from djvu to PDF, and your files are monochromatic, you could try using some of the lossless compressions available in PDF (like lossless JBIG2 for example) to prevent the images from lossing quality.