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 : Wednesday, November 23, 2011 7:25:58 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


Hi -

The quality of PDF documents displayed in the RasterImageViewer is poor compared to the Adobe Reader.

You can duplicate this issue by opening the attached PDF document with the LEADTOOLS Main Demo, and comparing it to the look of the document in the Adobe Reader.

I have tried adjusting codecs.Options.Pdf.Load.XResolution and codecs.Options.Pdf.Load.YResolution in the demo to higher values (as others have mentioned), but the quality remains poor.

Is there anything we can do to correct this issue?

Our version of LEAD is as follows:

Leadtools.dll - 17.0.0.19
Leadtools.codecs.dll - 17.0.0.22
Leadtools.codecs.Pdf.dll - 17.0.0.12
Leadtools.Pdf.dll - 17.0.0.3

File Attachment(s):
test.zip (1,586kb) 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 : Wednesday, November 23, 2011 8:29:30 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


Just saw the post about setting CodecsPdfLoadOptions.DisableCieColors to true.  Setting this property to true improves the quality of the image.
 
#3 Posted : Wednesday, November 23, 2011 10:10:13 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


One other issue to note: the size (meaning amount of screen space occupied) of the PDF in the Main Demo is smaller than the size of the image in the Adobe Viewer.  Am I missing a setting somewhere?
 
#4 Posted : Thursday, November 24, 2011 7:28:28 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


What exactly do you mean by size of screen space? Do you mean the display zoom level? If yes, you can change that by setting the SizeMode property is RasterPaintSizeMode.Normal and changing the zoom factor using the ScaleFactor Property.
If you mean something else, please explain it in details.

 
#5 Posted : Tuesday, November 29, 2011 5:20:05 AM(UTC)
johnreichert

Groups: Registered
Posts: 47



When I open the image in the LEADTOOLS Main Demo with Size mode = Normal and Zoom = Normal (100%) (which I set through the demo menus), the displayed image is smaller than what Adobe shows me at Zoom = 100%.  The attached screen shots illustrate this issue.  The image in the adobe.jpg screenshot is wider and taller than the image in the mainDemo.jpg screenshot.
File Attachment(s):
screenshots.zip (463kb) downloaded 36 time(s).
 
#6 Posted : Thursday, December 1, 2011 7:14:21 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


The concept of 100% is different from one application to the other when dealing with the same page on the same device.
Since the software does not really know how big or small your PC screen is (for example, it could be 4 inches or it could be 30 inches), there is no definite way to display an 8-inch page on the screen so that it will be exactly 8 inches.
The situation is different with printers, because you can query the printer and know what physical resolution it uses (such as 300 dots per inch or 600 DPI), and you can scale the image accordingly.

 
#7 Posted : Thursday, December 1, 2011 8:33:53 AM(UTC)
johnreichert

Groups: Registered
Posts: 47


Should it matter what software displays the image on screen?  The image has the same number of pixels in it, and my monitor is set to the same resolution regardless of which piece of software prints the document.  Is there something else that goes into the calculation of how big to make the PDF on the screen other than the DPI, number of pixels in the image, and the relative display size - 100% in this case?
 
#8 Posted : Sunday, December 4, 2011 8:00:54 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


John,
I will explain below how we do the scaling exactly. As you will read, this is very well defined and predictable.
However, I cannot say how other non-LEAD applications perform their scaling, because that's outside the scope of our support.

=======================
In LEADTOOLS, a certain zoom level such as 100% can be interpreted in 2 different ways:
1) If you disable the "Use DPI" feature, every pixel in the image is scaled according to screen pixels. Example A:
PDF is 8.5 inches wide.
When loading resolution is 100 DPI, for example, this produces an image that's 850 pixels wide.
Displaying at 100% causes the image width to be painted at 850 screen dots (1 image pixel => 1 screen pixel).

Example B:
Same PDF (8.5 inches wide)
When loading resolution is 200 DPI, this produces an image that's 1700 pixels wide.
Displaying at 100% causes the image width to be painted at 1700 screen dots (1 image pixel => 1 screen pixel).

2) If you enable the "Use DPI" feature, the screen resolution is also taken into account.
Example C (UseDPI = TRUE):
PDF is 8.5 inches wide.
When loading resolution is 100 DPI, this produces an image that's 850 pixels wide.
If the screen DPI is 96 (a very common value), every 96 dots on the screen are considered to be one inch.
Displaying at 100% causes the image width to be painted at 8.5 screen inches, which is equal to (8.5*96) = 816 dots (1 image INCH => 1 screen INCH).

Example D (UseDPI = TRUE):
Same PDF (8.5 inches wide)
When loading resolution is 200 DPI, this produces an image that's 1700 pixels wide.
If the screen DPI is also 96, every 96 dots on the screen are considered to be one inch.
Displaying at 100% causes the image width to be painted at 8.5 screen inches, which is equal to (8.5*96) = 816 dots (1 image INCH => 1 screen INCH).

 
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.149 seconds.