Bug 692227

Summary: Antialiasing not working for specific PDFs
Product: Ghostscript Reporter: Martin Osieka <martin.osieka>
Component: TextAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 9.02   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: Test PDF
Text showing anti-aliasing(TIFF file)

Description Martin Osieka 2011-05-25 12:58:09 UTC
Created attachment 7529 [details]
Test PDF

Some of my PDFs do not show an antialiasing effect. I tried it from my own application calling the dll or via commandline.

gswin32.exe -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300x300 "01 Fassaden.PDF"

Acrobat Reader and Gimp are using antialiasing for the text in these PDFs. I'm able to select and to copy the text in AR to the clipboard. So it is really text and not a text bitmap.

Same for gs versions older than 9.02.

Martin
Comment 1 Martin Osieka 2011-05-25 13:04:29 UTC
Created attachment 7530 [details]
This is the real pdf
Comment 2 Ken Sharp 2011-05-25 13:10:04 UTC
(In reply to comment #1)
> Created an attachment (id=7530) [details]
> This is the real pdf

Could you be specific about which text is not anti-aliased please ? This is a large and complex file and it takes time to look through it.
Comment 3 Ken Sharp 2011-05-25 13:10:29 UTC
Set attachment to private.
Comment 4 Martin Osieka 2011-05-25 13:44:47 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=7530) [details] [details]
> > This is the real pdf
> 
> Could you be specific about which text is not anti-aliased please ? This is a
> large and complex file and it takes time to look through it.

I would say none of the text is antialiased.

Here is some text in the top left corner of the pdf:

"objekt: ! efh brunnmattstrasse 24 in 4500 solothurn"

Copied via AR.
Comment 5 Ken Sharp 2011-05-25 14:02:01 UTC
Created attachment 7531 [details]
Text showing anti-aliasing(TIFF file)

(In reply to comment #4)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Created an attachment (id=7530) [details] [details] [details]
> > > This is the real pdf
> > 
> > Could you be specific about which text is not anti-aliased please ? This is a
> > large and complex file and it takes time to look through it.
> 
> I would say none of the text is antialiased.
> 
> Here is some text in the top left corner of the pdf:
> 
> "objekt: ! efh brunnmattstrasse 24 in 4500 solothurn"
> 
> Copied via AR.

This works OK for me with the current code. Its likely that this is due to some recent bug fixes in this area. Despite the fact that the PDF is marked as 1.3, it seems to contain transparency and this was not 100% reliable with anti-aliasing until recent fixes solved the problems.
Comment 6 Martin Osieka 2011-05-25 14:27:55 UTC
> This works OK for me with the current code. Its likely that this is due to some
> recent bug fixes in this area. Despite the fact that the PDF is marked as 1.3,
> it seems to contain transparency and this was not 100% reliable with
> anti-aliasing until recent fixes solved the problems.

OK, thanks. The results you showed in the tiff are fine for me. I will check with the next release of your software.
Comment 7 Martin Osieka 2011-05-25 20:47:50 UTC
(In reply to comment #6)
> 
> OK, thanks. The results you showed in the tiff are fine for me. I will check
> with the next release of your software.


Got a current clone, compiled and verified that antialiasing now works for this PDF. Thanks.