After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742561 - Unable to print djvu file to PDF file
Unable to print djvu file to PDF file
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-07 22:25 UTC by madbiologist
Modified: 2018-05-22 16:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description madbiologist 2015-01-07 22:25:59 UTC
The attached file can only be printed to a PS file (or a physical printer).  This takes only a few seconds, however the resultant PS file then takes 1 hour and 17 minutes for either Evince or ps2pdf to convert to a PDF file.  This is too long.

If one opens this resultant PDF In Windows Vista and prints to XPS via Adobe
Reader X, that takes ~10 minutes.

If one opens the resultant PDF in Evince and attempts to print to file (PDF)
the preparing to print message took minutes to make 1 page of progress.
However, it ultimately finished within 10 minutes.

It would be good if evince could directly convert djvu into PDF.  After all, PDF is THE standard format for printable documents under all operating systems.

I have filed bug 742559 about the alternative solution of fixing the awkward PS file that is generated.
Comment 1 madbiologist 2015-01-14 15:13:47 UTC
This recent (discussion with patches) about JBIG2 support in CairoOutputDev might help:
http://lists.freedesktop.org/archives/poppler/2015-January/011204.html
(although it is specific to Poppler)
Comment 2 madbiologist 2015-01-14 17:28:36 UTC
I should have mentioned in the above comment that the djvu file, according to djvudump(1), appears to be just one bilevel JB2 image per page.

Unfortunately, it turns out that djvu’s JB2 is not (quite) Jbig2.  It was the original proposal for jbig2, but the latter is different.

In bug 742559, James Cloos says, "Since Evince needs to decompress the page to view it, it would be best if it
were to do such decompression and re-compress when using cairo to generate pdf
or ps. At least for bi-level djvu pages."

"OTOH the current ps is fine for printing.  Perhaps the above only should be
done when converting to pdf?"

Also, I've noticed that the file did not attach as it is too large.  It is available at https://bugs.launchpad.net/ubuntu/+source/evince/+bug/525161/+attachment/4284552/+files/Grammar%204.djvu
Comment 3 GNOME Infrastructure Team 2018-05-22 16:03:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/549.