[bug-gs] troff-grops-ps2pdf problem

Ray Johnston ray.johnston at artifex.com
Mon Dec 22 13:21:06 PST 2003


Bill,

I can't reproduce your problem. The a.ps file looks fine on the
display from the current HEAD revision as well as from 7.05.

Also the a.pdf files I created from both HEAD and 7.05 look fine.
I've attached these. The 1768 byte a.pdf is from the HEAD rev
and the 7133 byte file is from 7.05. Other than the file size,
they look the same to me.

What fonts are you using ? It could be a problem with the 'fi'
ligature in your font. If you run

   gs -sDEVICE=pdfwrite -sOutputFile=a.pdf -dNOPAUSE -dBATCH a.ps

(without the -q option) it will tell you where the fonts are
coming from. I get:

GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /fonts/n021003l.pfb... 1978224 621861 1723008 414856 0 done.

Examining the head of this file, I see:

%!PS-AdobeFont-1.0: NimbusRomNo9L-Regu 1.05
%%CreationDate: Wed Dec 22 1999
% Copyright (URW)++,Copyright 1999 by (URW)++ Design & Development
% (URW)++,Copyright 1999 by (URW)++ Design & Development

A clue to a font problem would be if the 7.05 a.pdf I sent looks
ok when viewed with gs, but the smaller a.pdf from the HEAD rev has
the problem. The 7.05 a.pdf file is bigger because it embedded the
URW font for the Times-Roman font. Thus viewing the 7.05 a.pdf you
will see the results from the embedded font, versus the HEAD a.pdf
will pick up whatever the standard 'Times-Roman' font that gs thinks
it should use (from your installed fonts). the "Loading ..." message
will tell you where gs is getting the font when viewing the a.pdf.

Regards,
Ray
____________________________________________________________________

William.A.Ward.Jr at erdc.usace.army.mil wrote:
> 
> Ray,
> 
> Here you go!
> 
> Thanks for your time spent investigating this.
> 
> Regards,
> 
> Bill Ward
> 
> -----Original Message-----
> From: Ray Johnston [mailto:ray.johnston at artifex.com]
> Sent: Monday, December 22, 2003 12:22 PM
> To: William.A.Ward.Jr at erdc.usace.army.mil
> Cc: bug-gs at ghostscript.com
> Subject: Re: [bug-gs] troff-grops-ps2pdf problem
> 
> 
> Bill,
> 
> Please send the "a.ps" file that you produced. We don't really support
> troff or grops problems, but if Ghostscript doesn't handle the PS
> correctly, or is missing something when the pdfwrite device creates
> the PDF file, we will fix it.
> 
> Regards.
> Ray Johnston
> _______________________________________________________________________
> William.A.Ward.Jr at erdc.usace.army.mil wrote:
>  > Hello,
>  >
>  > I got this e-mail address of the "ps2pdf" manpage on my Linux system
>  > as the address for L. Peter Deutsch.  I am having a problem with using
>  > troff-grops-ps2pdf.  Below is my shell script:
>  >
>  > #!/bin/sh
>  > rm -f a.pdf a.ps a.troff
>  > troff myinput > a.troff
>  > grops < a.troff > a.ps
>  > ps2pdf a.ps a.pdf
>  > acroread a.pdf
>  >
>  > The file "myinput" contains
>  >
>  > .sp
>  > Specific
>  > Specific
>  > .bp
>  > Specific
>  > Specific
>  >
>  > My version info is
>  >
>  > GNU troff (groff) version 1.19
>  > GNU grops (groff) version 1.19
>  > GNU Ghostscript 7.05 (2002-04-22)
>  >
>  > First page output: "Specific Specific"
>  > Second page output:"Specifi c Specifi c"
>  >
>  > Basically the ligatures for "fi" don't work right after the
>  > first page since there is a large space after the "fi" so
>  > that the "c" is almost a separate word.
>  >
>  > The tail of file a.ps looks like:
>  >
>  > %%EndProlog
>  > %%Page: 1 1
>  > %%BeginPageSetup
>  > BP
>  > %%EndPageSetup
>  > /F0 10/Times-Roman at 0 SF(Speci\214c Speci\214c)72 24 Q 0 Cg EP
>  > %%Page: 2 2
>  > %%BeginPageSetup
>  > BP
>  > %%EndPageSetup
>  > /F0 10/Times-Roman at 0 SF(Speci\214c Speci\214c)72 12 Q 0 Cg EP
>  > %%Trailer
>  > end
>  > %%EOF
>  >
>  > I can work around this in troff by turning of ligatures and
>  > then manually inserting them (yuck!):
>  >
>  > .lg 0
>  > .sp
>  > Speci\(fic
>  > Speci\(fic
>  > .bp
>  > Speci\(fic
>  > Speci\(fic
>  >
>  > Do you have any idea where the problem might be?
>  >
>  > Best regards,
>  >
>  > Bill Ward
> 
>  
> 

-- 
Ray Johnston
Director of Engineering                          Tel: (714) 484-0376
Artifex Software Inc.                            Fax: (714) 220-1022
______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.pdf
Type: application/pdf
Size: 1767 bytes
Desc: not available
Url : /pipermail/bug-gs/attachments/20031222/4e2454d3/a-0002.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.pdf
Type: application/pdf
Size: 7132 bytes
Desc: not available
Url : /pipermail/bug-gs/attachments/20031222/4e2454d3/a-0003.pdf


More information about the bug-gs mailing list