Created attachment 309081 [details]
Ubuntu patch to fix Brother printing issues
Printing on my Brother MFC-8720 fails if the printing application outputs PDF to cups (both 1.4.8-r1 and 1.5.2-r1). The problem can be traced back to the converted Postscript output by poppler's pstopdf.
The Postscript code created by pstopdf causes two problems:
1. If the printer was just turned on, the first printout fails with the following error page:
2. Subsequent tries are successful, but the margins are wrong: the whole page is shifted upwards.
Both symptoms can be traced to one problematic line in the Postscript prolog inserted by pstopdf. Upstream's bugzilla lists two open bug reports related to this problem (bug #18711 <https://bugs.freedesktop.org/show_bug.cgi?id=18711>, bug #17952 <https://bugs.freedesktop.org/show_bug.cgi?id=17952>).
Current Ubuntu packages of poppler contain a small patch fixing this issue. The corresponding patch is attached, see Launchpad bug #293832 <https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/293832>.
I'd appreciate an official integration in the current poppler ebuild... Thanks in advance!
poppler-0.16 is not in the tree anymore. Do you still have this problem with poppler-0.18 or 0.20?
I'm currently running stable app-text/poppler-0.18.4-r1 with exactly the same problems as reported for 0.16. The old patch still applies and fixes the problem for me.
So far, I did not try poppler-0.20 yet. There has been no progress on the referenced upstream bugs since April, so I guess the problem still exists in 0.20 as well. Let me know if it's worthwile to test out poppler-0.20.
Please try poppler-0.20. It should be fixed there imho.
Created attachment 318864 [details, diff]
Patch to fix Brother printing issues for poppler-0.20.2
Tested poppler-0.20.2: It fixes only on of the two mentioned problems...
1. The first page after turning on the printer still fails with the same error.
2. Subsequent pages are successfully printed with correct margins.
To get a correct printout after turning on the printer, version 0.20.2 still needs the "Policies" line removed. Attached is a slightly modified patch for version 0.20.2 that fixes the remaining problem no. 1.
*** Bug 398043 has been marked as a duplicate of this bug. ***
Just installed app-text/poppler-0.20.4 and tested this issue again: The problem still exists as described in comment 4, the patch for poppler-0.20.2 still applies and fixes the bug.
From the upstream bug report:
Stefan Brüns 2013-01-14 22:37:58 UTC
The fragment is syntactically correct, but it may be semantically wrong.
From PLRM 3 (p433 ff):
/PageSize 6 :
Select the next larger available medium but do not adjust the page.
This might lead to an error if there is no pagesize larger than requested.
@Andreas: What pagesizes are available? Which pagesize did you request?
(In reply to Andreas K. Hüttel from comment #7)
> From the upstream bug report:
> Stefan Brüns 2013-01-14 22:37:58 UTC
> The fragment is syntactically correct, but it may be semantically wrong.
> From PLRM 3 (p433 ff):
> /PageSize 6 :
> Select the next larger available medium but do not adjust the page.
> This might lead to an error if there is no pagesize larger than requested.
> What pagesizes are available? Which pagesize did you request?
Wee need your help here, otherwise we cannot do anything.