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 : Monday, April 10, 2006 1:35:09 AM(UTC)

Gianni  
Gianni

Groups: Registered
Posts: 4


Hi,

We've created an application in .NET 2005 to view pdf-files. When we zoom out, the quality of the pdf is bad. How can we fix this?

Thankx.

Sofie

 

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 : Tuesday, April 11, 2006 11:25:15 PM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

Hello Sofie,


Which programming interface (e.g. COM, .NET, etc.) are you using?  Also, which product (e.g. Raster, Document, etc.) do you have?

Thanks,

 
#3 Posted : Wednesday, April 12, 2006 3:20:25 AM(UTC)

Gianni  
Gianni

Groups: Registered
Posts: 4


We are using C#.NET and RasterImageViewer.

This is the code we're using to open a pdf.

RasterPaintProperties _paintProperties = pdfRasterImageViewer.PaintProperties;
_paintProperties.PaintDisplayMode =
RasterPaintDisplayModeFlags.Bicubic;
_image =
new PdfImage(_codecs.Load(imageName));
pdfRasterImageViewer.Image = _image;

This is the code we're using to zoom:

pdfRasterImageViewer.ScaleFactor /= zoomFactor;

Thanks,
Sofie

 
#4 Posted : Thursday, April 13, 2006 12:54:06 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

If you have Document or Medical Imaging, then try setting PaintDisplayMode to ScaleToGray.

 
#5 Posted : Thursday, April 13, 2006 1:34:51 AM(UTC)

Gianni  
Gianni

Groups: Registered
Posts: 4


Unfortunately this was not the solution.

 

The pdf in true size looks great but when we zoom in or out not.

 

 
#6 Posted : Sunday, April 16, 2006 12:06:11 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

Can you please post a sample PDF?  Please put it in a ZIP file.

Thanks,
 
#7 Posted : Monday, April 17, 2006 11:12:07 PM(UTC)

Gianni  
Gianni

Groups: Registered
Posts: 4


Hi,

Here is a sample pdf and a screenshot so you can see what I mean.

File Attachment(s):
Leadtools.zip (486kb) downloaded 37 time(s).
 
#8 Posted : Tuesday, April 18, 2006 6:05:42 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

This is a DPI issue.  I tried loading the file with 150 DPI and it
looks much better.  To do that, set the
RasterCodecs.Options.PDF.Load.XResolution and YResolution properties to 150 or higher.

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