Bug 54317 - Generated postscript prologue broken for Brother printers
Summary: Generated postscript prologue broken for Brother printers
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-31 10:59 UTC by Andreas K. Hüttel
Modified: 2017-06-17 10:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andreas K. Hüttel 2012-08-31 10:59:24 UTC
This is possibly a bug in the Brother printer postscript interpreters, but I'm forwarding it here (from the linked Gentoo bug) for completeness and to get your opinion. 
https://bugs.gentoo.org/show_bug.cgi?id=412135

Postscript generated by poppler (0.20) produces an error like 

ERROR NAME;
   configurationerror
COMMAND;
   setpagedevice
OPERAND STACK;
   --dicttype--

on the first printed page. Subsequent pages are printed correctly. Applying the following patch seems to "fix" the problem:

--- poppler-0.20.2.orig/poppler/PSOutputDev.cc	2012-07-05 17:46:06.000000000 +0200
+++ poppler-0.20.2.orig/poppler/PSOutputDev.cc	2012-07-21 23:20:08.710589375 +0200
@@ -116,7 +116,6 @@ 
   "/pdfSetup {",
   "  /setpagedevice where {",
   "    pop 2 dict begin",
-  "      /Policies 1 dict dup begin /PageSize 6 def end def",
   "      { /Duplex true def } if",
   "    currentdict end setpagedevice",
   "  } {",

This may be related to bug 17952 or bug 18711.
Comment 1 Albert Astals Cid 2012-09-03 18:22:11 UTC
I sincerely think you should contact Brother developers not us. As far as i can tell that's perfectly valid postscript.

If someone can prove us wrong i'd be happy to fix it.
Comment 2 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?
Comment 3 Albert Astals Cid 2017-06-17 10:44:50 UTC
No answer to the question made.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.