Issue 8068 - OOo postscript output breaks mpage
Summary: OOo postscript output breaks mpage
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: gsl
Classification: Code
Component: www (show other issues)
Version: current
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1 Beta
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-04 15:39 UTC by Unknown
Modified: 2003-03-12 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Print filter script (2.54 KB, text/plain)
2002-10-04 15:41 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-10-04 15:39:13 UTC
Using mpage version 2.5.1pre2.  Catting postscript generated by OOo through 
mpage -2
causes ghostview to barf.  

cat OOo_output.ps | mpage -2 > page.ps
gv page.ps 

gives an error:

"Error: /rangecheck in .installpagedevice
Operand stack:
   --dict:46/46(ro)(G)--   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3  
%oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval-- 
 2   %stopped_push   --nostringval--   --nostringval--   --nostringval--  
--nostringval--
Dictionary stack:
   --dict:1032/1476(ro)(G)--   --dict:0/20(G)--   --dict:105/200(L)--
Current allocation mode is local
GNU Ghostscript 6.51: Unrecoverable error, exit code 1
"

The error can vary but the result is the same.  mpage -2 is supposed to put two
pages on a single sheet but the result with OOo postscript is the first page on
a single sheet while the remaining pages are properly formatted.  Any other
postscript appears fine.

To reproduce:

1. Create a print queue using the following printcap entry:

booklet:\
	:ml=0:\
	:mx=0:\
	:sd=/var/spool/lpd/booklet:\
	:af=/var/spool/lpd/booklet/booklet.acct:\
	:sh:\
	:lp=|/var/spool/lpd/booklet/booklet-print:

2. install the attached booklet-print script as the print filter.
While "LOGFILE" is defined, the filter will generate a file called "book.ps"
which will cause the error.

3. Use OOo spadmin to create a "Generic Printer" pointing to this print spool
4. Create anything in Writer or Calc (that's all I tested with) (even blank) and
print to this printer.
5. use "gv /var/spool/lpd/booklet/book.ps" to view
Comment 1 Unknown 2002-10-04 15:41:13 UTC
Created attachment 3064 [details]
Print filter script
Comment 2 philipp.lohmann 2002-11-12 14:48:24 UTC
reassign
Comment 3 philipp.lohmann 2002-11-13 18:15:19 UTC
I cannot reproduce gs error. I printed 3 pages to file, did mpage -2
>bla.ps and got 2 pages of output; the original first page did not
show, but this is due to issue 5456. What version did you actually use
? I tried with OOo 1.0.1 and 644.
Comment 4 Unknown 2002-11-20 10:02:29 UTC
Found problem with 1.0.0  Will test with 1.0.1 later.  

When will issue 5456 be fixed?

Thanks
Comment 5 philipp.lohmann 2002-11-20 10:05:08 UTC
when i know what actually upsets mpage.
Comment 6 philipp.lohmann 2003-01-23 12:16:30 UTC
The problem of mpage's output is that it does not filter the DSC
compliant printer specific features which are bracketed by
%%BeginFeature/%%EndFeature pairs. These features enable things like
duplex, hardware resolution, media size, etc. and should be either
eliminated by mpage or the original code should be bracketed by
%%BeginDocument/%%EndDocument pairs (see also issue 5456). This can
only be fixed by mpage, not by OOo.
Comment 7 michael.bemmer 2003-03-12 14:25:13 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for
details. First step in IssueZilla is unfortunately to set them to verified.
Comment 8 michael.bemmer 2003-03-12 14:25:44 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for
details. First step in IssueZilla is unfortunately to set them to verified.
Comment 9 michael.bemmer 2003-03-12 14:25:45 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for
details. First step in IssueZilla is unfortunately to set them to verified.
Comment 10 michael.bemmer 2003-03-12 14:42:51 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. 
Comment 11 michael.bemmer 2003-03-12 14:43:09 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. 
Comment 12 michael.bemmer 2003-03-12 14:43:12 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.