LEADTOOLS Support
Imaging
Imaging SDK Questions
Anti-Aliasing works for TIF but not for PDF
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, June 27, 2006 1:02:43 PM(UTC)
Groups: Registered
Posts: 14
We have recently modified our code to include anti-aliasing of image files through use of
SetDisplayMode( DISPLAYMODE_SCALETOGRAY, DISPLAYMODE_SCALETOGRAY );
This works for TIF images.
We also unlocked support for reading and writing PDF files and this works. For our PDF images, however, the anti-aliasing is not working. The code that reads the PDF image modifies the resolution from 72x72 to 300x300.
I have attached a (zipped) sample PDF document. I would appreciate any suggestions you might have to get the anti-aliasing working.
Thanks.
#2
Posted
:
Wednesday, June 28, 2006 4:20:38 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This is a 24-bit file. The
DISPLAYMODE_SCALETOGRAY
mode works for 1-bit images only. Load the file as a 1-bit file
and with a high DPI (e.g. 300) and it should work.
#3
Posted
:
Wednesday, June 28, 2006 4:43:25 AM(UTC)
Groups: Registered
Posts: 14
Thank you. Adding nDisplayDepth = 1 to the FILEPDFOPTIONS settings fixes the problem.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Anti-Aliasing works for TIF but not for PDF
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.