Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, April 12, 2012 5:32:08 AM(UTC)
morrisonwx

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


File Attachment(s):
issue.pdf (324kb) downloaded 33 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, April 13, 2012 10:12:19 AM(UTC)

Danny H  
Guest

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.



File Attachment(s):
RasterizerDocOptions.txt (1kb) downloaded 37 time(s).
 
#3 Posted : Saturday, April 14, 2012 8:20:18 PM(UTC)
morrisonwx

Groups: Registered
Posts: 13


Thanks.  It works great...
 
#4 Posted : Monday, April 16, 2012 4:22:00 AM(UTC)

Danny H  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You're welcome.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.185 seconds.