Issue 8229 - PS Export by "Print to File" is no longer ghostscript friendly
Summary: PS Export by "Print to File" is no longer ghostscript friendly
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 643
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: OOo 1.1 Beta
Assignee: ulf.stroehler
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-11 00:55 UTC by kyoshida
Modified: 2003-03-13 11:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kyoshida 2002-10-11 00:55:30 UTC
When I try to print a document to a file via "Print to File" feature of the OOo
643, it converts the majority of the fonts into bitmaps.  If I then convert the
output PS file into PDF by using ps2pdf utility of the Ghostscript, the font
becomes really ugly when opened in Acrobat Reader.

Now, on the same system (Mandrake 9.0), I open the same file in OOo 1.0.1 or SO
6.0, do a "Print to File" and subsequently convert the output file into PDF, the
fonts are preserved and look just like they should.  I've tested the following
fonts:

Arial
Times New Roman
Albany
Thorndale
Times
Helvetica
Kidprint

Using 643, only Times and Helvetica fonts are preserved as fonts.  All the other
fonts become bitmaps when printed to file.  Using 1.0.1 or SO 6.0, on the other
hand, all of the above fonts are preserved in the converted PDF file (even the
Kidprint font, which surprised me!).

I've first noticed it on my heavily tweaked version of Mandrake 8.2.  But I've
also confirmed it on a near-fresh install of Mandrake 9.0.

I hope this will get fixed before the official 1.1 is out, as I rely heavily on
this feature in my LaTeX work.

By the way, 643 looks really promising.  It shows tons of improvements over the
previous 1.0.x versions.  I can readily see that the performance, in particular,
has been much improved in both Linux and Windows versions.  Thank you for your
excellent work.

Kohei
Comment 1 thorsten.martens 2002-10-16 15:04:07 UTC
TM->PL: As talked to US, this one is not really a framework-issue. As
he mentioned, you might know more about this behaviour, thanks !
Comment 2 philipp.lohmann 2002-10-16 16:01:13 UTC
Fonts are never printed as bitmaps. What you probably mean is that
nowadays more font subsets are downloaded than before (that means
parts of the fonts on your system are downloaded to the PostScript
file; these are not bitmaps though); you can circumvent this by adding
font substitutions to the table in 

Tools->Options->OpenOffice->Font substitution

Add e.g. Arial -> Helvetica and the PostScript builtin font should be
used again.

Additonally you can add the following line to
<office>/psprint/driver/SGENPRT.PPD (e.g. after the line beginning
with "*LanguageLevel":

*TTRasterizer: Type42

This makes the Generic Printer capable of using Type42 fonts which
often results in better output with ghostscript.
Comment 3 kyoshida 2002-10-16 17:12:12 UTC
Thanks Philipp for your reply.

I tried your second suggestion, and guess what, it worked!  As a side
effect I've lost several fonts including Times, Helvetica, Albany and
Thorndale (and probably more), but I'm good as long as all my TrueType
fonts are available.

I guess my question now is, will this behavior be permanent in the 643
branch, in other words, will I need to modify the SGENPRT.PS in all
subsequent releases of this branch? or will it revert to the behavior
in the previous 1.0 branch (assuming that something did change between
the two branches wrt this issue)?

It's not a big issue as long as I know the workaround, but still I
think it's best that this issue get addressed before the 1.1 release
in order to avoid surprises.

Thanks,

Kohei
Comment 4 kyoshida 2002-10-16 17:22:27 UTC
On second inspection, all the fonts that I thought were gone just
reappeared!  I guess either I was hallucinating due to too much
caffeine, or it simply fixed itself (don't know how).

Kohei
Comment 5 philipp.lohmann 2002-10-16 17:58:03 UTC
I think there are two things we should do here:
1. One could generate a Ghostscript PPD that is essentially SGENPRT
plus Type42 support (would be a good thing anyway since it would
improve printing on almost all Linux systems)
2. We really lost a feature we had in 641, namely the automatic font
substitution on the printer (which is by the way configurable with
spadmin). I will think of a way to reactivate that with the current
printing method (which changed to support CTL and Bidi layout).
Comment 6 kyoshida 2002-10-16 18:39:06 UTC
AFAICT, the first solution alone will be sufficient for my specific
needs.  Thanks Philipp.

Kohei
Comment 7 philipp.lohmann 2003-02-10 12:33:35 UTC
In CWS vcl05 there is a Type42 enabled generic printer PPD as well as
a working fontsubstitution again.
Comment 8 Unknown 2003-02-10 21:07:44 UTC
Old versions of Ghostscript rasterized some of the fonts.
Try this file on GS 8.00
Comment 9 philipp.lohmann 2003-02-14 14:13:04 UTC
fixed in vcl05
Comment 10 philipp.lohmann 2003-02-14 14:13:23 UTC
fixed
Comment 11 ulf.stroehler 2003-02-17 16:49:18 UTC
verified in vcl_05.
Comment 12 michael.bemmer 2003-03-13 11:08: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.