Bug 689310

Summary: Offset between text and outline in pdfwrite.dev
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: Graphics LibraryAssignee: Ken Sharp <ken.sharp>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.57   
Hardware: PC   
OS: Linux   
Customer: 411 Word Size: ---
Attachments: pipo.eps
pipo_distiller.pdf
screenshot.png

Description Marcos H. Woehrmann 2007-06-29 06:29:19 UTC
The customer reports and I've verified that converting the attached EPS file to
PDF via -sDEVICE=pdfwrite produces a PDF file that is rendered differently in
Ghostscript than a file converted from EPS to PDF via Distiller .  Specifically
there is an offset in the text interior vs. the outline.

I've attached the original EPS file, the PDF generated by Acrobat Distiller, and
a screenshot showing the output from Ghostscript.

The command line I used to generate the PDF:

  bin/gs -sDEVICE=pdfwrite -sOutputFile=pipo_ghostscript.pdf ./pipo.eps

And to view the PDFs:

  bin/gs -r1000 ./pipo_ghostscript.pdf
  bin/gs -r1000 ./pipo_distiller.pdf

The customer reported this with 8.57, but head (r8085) output is identical.
Comment 1 Marcos H. Woehrmann 2007-06-29 06:29:48 UTC
Created attachment 3090 [details]
pipo.eps
Comment 2 Marcos H. Woehrmann 2007-06-29 06:30:29 UTC
Created attachment 3091 [details]
pipo_distiller.pdf
Comment 3 Marcos H. Woehrmann 2007-06-29 06:31:10 UTC
Created attachment 3092 [details]
screenshot.png
Comment 4 Ray Johnston 2007-07-03 10:12:49 UTC
The problem is seen at 300, 600 and 720 dpi from the original EPS.

Since the pdfwrite device defaults to 720 dpi, it is _NOT_ a PDF problem,
but something else (font or graphics library precision?)
Comment 5 leonardo 2007-08-29 19:55:08 UTC
Passing to Ken since he handles pdfwrite from now.
Comment 6 leonardo 2007-09-14 03:09:40 UTC
The bug Bug 688007 "cjk bold fonts printed many times" shows a similar problem, 
which may be addressed as an idiom recognition.
Comment 7 Ken Sharp 2007-10-02 00:42:52 UTC
Patch http://ghostscript.com/pipermail/gs-cvs/2007-October/007845.html resolves
the issue.