Printing djvu file to PS file produces an awkward PS file
Submitted by madbiologist
Printing the attached file to a physical printer on Evince 3.14.1-0ubuntu1 takes 1 hour and 20 minutes.
Printing to a PS file only takes a few seconds.
However, the conversion of this PS file to PDF via either Evince or ps2pdf takes 1 hour and 17 minutes.
In Windows Vista, if one takes this resultant PDF 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.
Overall, given the resultant PDF is so massive for a PDF (100MB+) it's not a shocker it's taking so long to permute through all these different printing methods.
Running the "top" command while ps2pdf is running shows that gs from the ubuntu USER is at the top of the list with 100% use of one of my four CPU cores (single CPU state/separate CPU states can be toggled by pressing "1" while top is running). SHaRed memory was fixed at 3776 KiB, while VIRTual memory size and RESident memory size steadily increased to over 100000 KiB each after 10 minutes and continued to steadily increase to over 200000 KiB before the conversion completed.
Sending the PostScript file directly to a native PostScript printer, for example using the command
<IP address of printer> 9100 < Grammar\ 4.ps
leads to a printout in a reasonable time (2-3 pages quickly one after each other, then 5 seconds pause, 2-3 pages again and so forth).
It would seem that evince generates an awkward PostScript file AND GhostScript is really TOO slow, meaning that there is room for improvement/fixing in Evince and Ghostscript.
Is it possible to make the djvu software used by evince generate better, easier to process PostScript?
I will file a separate bug for the alternative solution of evince being able to directly convert djvu into PDF. After all, PDF is THE standard format for printable documents under all operating systems.