This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, April 12, 2012 5:32:08 AM(UTC)
Groups: Registered
Posts: 13
I would to take this opportunity to thank everyone in assisting me with my project. The assistants have been great.
I need help with a small issue. When I am converting from PDF to TIFF the output quality is not very good. Let me explain further, previously we were using v13.5 COM to do the conversion. However, with no COM in v17.5 we resorted to C/C++ DLL which works fine. The quality of the output using COM is way better (see attached) relative to CDLL (see attached). I would like to know what I am doing wrong. This the load statement
nRet = L_LoadBitmap (Data.szFilename, &Data.BitmapHandle, sizeof(BITMAPHANDLE),
8, ORDER_RGB, &LoadFileOption, &Data.FileInfo);
The save statement:
nRet = L_SaveBitmap(m_strFileOut,
&Data.BitmapHandle,
FILE_CCITT_GROUP4,
1,
0,
&SaveFileOption );
By the way the output format are the same (FILE_CCITT_GROUP4). We would the output format to remain the same. Also the attach PDF shows the following:
Page 1 : original PDF
Page 2 : converted Tiff (using COM)
Page 3 : converted Tiff (using CDLL)
Thanks in advance.....Wilford
#2
Posted
:
Friday, April 13, 2012 10:12:19 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Wilford,
It seems to me in both cases the DPI when rasterized is perhaps lower than it should be for the best quality. My suggestion is to actually adjust the DPI settings to be 300 DPI when Rasterizing the PDF.
Refer to this link in regards to changing the RaserizeDocument options.
http://www.leadtools.com/help/leadtools/v175/main/api/dllref/l_setrasterizedocoptions.htm
The code example may be excessive to get the simplicity, so I have attached a small snippet of what I suggest you do.
#3
Posted
:
Saturday, April 14, 2012 8:20:18 PM(UTC)
Groups: Registered
Posts: 13
Thanks. It works great...
#4
Posted
:
Monday, April 16, 2012 4:22:00 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
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.