This patch  breaks PostScript printing with pdftocairo to Ricoh printers: only the last line of the sequence is printed.
For example, if you have this in your .ps file,
only "cc" will appear on the page.
PostScript viewers also fail to parse it: neither GhostScript nor Evince are able display these lines.
Please revert or fix the patch?
I've reverted the problematic patch in trunk.
I'm hopeful that a better fix can be found for the original issue, and am CCing Adrian.
This (or a better fix) is a candidate for 1.14.2
Created attachment 108707 [details] [review]
Please attach a pdf for reproducing the problem and your ps output. It works fine for me with ghostscript 9.06.
Please try the attached patch.
(In reply to Bryce Harrington from comment #1)
> I've reverted the problematic patch in trunk.
> I'm hopeful that a better fix can be found for the original issue, and am
> CCing Adrian.
> This (or a better fix) is a candidate for 1.14.2
I'm sure we can find a better fix since reverting it breaks printing on my printer. I'll work on analyzing this problem but don't expect an immediate response. I've been sleeping for the last 8 hours.
I've pushed a fix for this.
Created attachment 108728 [details]
Created attachment 108729 [details]
Here is a resulting file with broken lines.
I tested the suggested patch. Looks like it makes one long line (aaabbbcccc) instead of
This works with my Evince, GS, and my printers, though I'm not sure what is the limit of length for such a line.
*** Bug 89406 has been marked as a duplicate of this bug. ***
*** Bug 89357 has been marked as a duplicate of this bug. ***