Very thin lines
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Very thin lines  XML
Forum Index -> ICEpdf General
Author Message
therealkenc

Joined: 26/07/2010 12:17:17
Messages: 3
Offline


Hello. I am finding that very thin lines are drawing "thinner" using ICEPdf than with Adobe Reader. Below are some screencaps to give an idea. I also have a test pattern pdf if there is some place I can put/attach, if that is useful. The lines in question are 3 twips (3/1440th of an inch).

The real problem is that when sent to a printer (a PCL laser printer in my case) the ovals don't render properly -- pixels are missing from the line. Its a bit hard to describe without the paper in your hand. When printing directly from the application (using GDI) it prints okay.

In other words:

app->PCL printer (ok)
app->acrobat 9->reader->PCL printer (ok)
app->acrobat 9->icepdf viewer->PCL printer (missing pixels)

Has anyone seen this before, and is there a way to address?

TIA,
Ken

screen cap from icepdf viewer


screen cap from adobe reader



patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


Can you attach the test file this thread?
[Email]
therealkenc

Joined: 26/07/2010 12:17:17
Messages: 3
Offline


Ahh, I missed the attach files button first post. Print with ICDPdf Viewer and Adobe Reader. ~K

patrick.corless wrote:
Can you attach the test file this thread? 
 Filename Test Draw.pdf [Disk] Download
 Description
 Filesize 6 Kbytes
 Downloaded:  52 time(s)

patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


Acrobat and ICEpdf use slightly different default zooms. Or in other word our 100% is slightly smaller then their viewer.

The test file you send over is quite simple containing only a few draw operations. Any differences on screen are likely do subtle differences in how Java2D does anti-aliasing when compared to Acrobats graphics engine.

Printing in Java is a bit of a black box and there is very little that can be configured programmaticly to get around quality issues. However that said you could try tweaking some off the Java2D rendering hints to see if any improvements can be made (http://wiki.icefaces.org/display/PDF/System+Properties). In some extreme cases it maybe necessary to paint to image and then print the image.
[Email]
therealkenc

Joined: 26/07/2010 12:17:17
Messages: 3
Offline


I appreciate the reply. I don't believe it is a "zoom" issue per-se. I am talking about printing on an 8.5"/11" piece of paper. When printed the size of the ovals is exactly the same; it is the width of the strokes that differs. I just took some screen caps from the viewers (above) to give a general idea. Observe the ICEpdf stokes are thinner than Reader even though the ovals are larger.

I'll play with the properties; thanks for that pointer. core.target.stroke looks promising. If you have any specific suggestions that might make the strokes thicker, I'd be grateful.

Ken
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team