Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 205797 - Unable to print PostScript report if report contains special characters
Summary: Unable to print PostScript report if report contains special characters
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.3.0 RC3   Edit
Assignee: Jun Ouyang CLA
QA Contact:
URL:
Whiteboard: Non-Auto
Keywords:
: 219567 226685 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-09 06:15 EDT by Dirk CLA
Modified: 2009-07-09 21:40 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk CLA 2007-10-09 06:15:19 EDT
Build ID: M20070921-1145

Steps To Reproduce:
1. Create a report-design containing some German characters (e.g. ä)
2. Create the report in ps output
3. View the report e.g. with GhostView (4.8) => Correct
4. Send this report to a Postscript printer. => Fails

More information:
We tested this with several Postscript printers (Dell, HP,... ) There seems to be a problem during the font substitution.
When looking at the postscript file with a text editor, we can see that there has been a substitution but there seems to be some postscript generated that is incorrect and not understood by the printers. The generated file is printed until the printer needs to print the special character.
Comment 1 Jun Ouyang CLA 2008-02-04 02:01:22 EST
Already fixed.
Comment 2 Jun Ouyang CLA 2008-02-05 00:48:27 EST
This bug is wrongly resolved to fix. Reopen it.
Comment 3 Jun Ouyang CLA 2008-02-13 02:18:51 EST
Need to investigate printing postscript file by sending it to printer directly.
Comment 4 Wei Yan CLA 2008-03-23 23:31:44 EDT
need more time, defer to RC0
Comment 5 Jun Ouyang CLA 2008-04-23 02:37:42 EDT
The bug is caused by embedding true type font as cid fonts.

I tried much to find exact cause of the error but failed.

Currently, the generated postscript file can't be displayed by GSView, while it can be displayed by Ghostscript with version lower than 8.61, and it also can be displayed by EVince.

The bug seems caused by defect of postscript interpreter to support embedding cid fonts.
Comment 6 Jun Ouyang CLA 2008-04-23 02:38:35 EDT
*** Bug 219567 has been marked as a duplicate of this bug. ***
Comment 7 Jun Ouyang CLA 2008-05-13 02:27:01 EDT
*** Bug 226685 has been marked as a duplicate of this bug. ***
Comment 8 Jun Ouyang CLA 2008-05-29 02:38:59 EDT
Postscript files generated by BIRT need to run on postscript interpreter level 3. So, if ps interpreter of printer doesn't support ps level 3, the ps file is not able to printed.
Thus, to print the ps file, we need to:
1. Update the ps interpreter(driver?) of ps printer to support postscirpt level 3, or
2. Print ps file through gostscript by command:
   gs -sDEVICE=deviceName -sOutputFile="%printer%printer name" ¨CdNoCancel -dBATCH -dNOPAUSE test.ps
   -"gs", ghostscript command. On windows, it should be gswin32/gswin32c.
   -"deviceName" is device name of print driver. On windows, it should be "gswinpr2".
   -"%printer% printer name" is printer name.