Bug 692227 - Antialiasing not working for specific PDFs
Summary: Antialiasing not working for specific PDFs
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Text (show other bugs)
Version: 9.02
Hardware: PC Windows 7
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 12:58 UTC by Martin Osieka
Modified: 2011-09-20 15:54 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Test PDF (55.48 KB, image/png)
2011-05-25 12:58 UTC, Martin Osieka
Details
Text showing anti-aliasing(TIFF file) (8.83 KB, application/octet-stream)
2011-05-25 14:02 UTC, Ken Sharp
Details

Note You need to log in before you can comment on or make changes to this bug.
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.