> -----Original Message-----
> From: Maarten Coene [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 08, 2004 10:39 AM
> To: Paulo Soares
> Cc: [EMAIL PROTECTED]
> Subject: Re: [iText-questions] PDF documents created by iText 
> 1.02b doesn't look as good as with 1.00
> 
> Hi,
> 
> thanks for your help :-)
> 
> I still have some problems with these generated PDF's:
> - is this opacity something of iText, or is it the responsability of 
> JFreeChart and can I put it off with the iText API ?

iText is only rendering what's receiving. If make sure that all the
lines and text are opaque in JfreeChart the chart will look the same.

> - I can't find a way to make these 2 PDF's look the same with Acrobat 
> Reader 6 (however, they look the same with Acrobat Reader 5 
> !!!) Is it a 
> specific setting within the reader I have to change, or can I change 
> some PDF settings with the iText API to accomplish this?

This is a viewer thing that iText can't change.

Best Regards,
Paulo Soares

> 
> thanks,
> Maarten
> 
> Paulo Soares wrote:
> 
> >There's nothing wrong. Only the text "serie 0" is really 
> text, the other is
> >composed of strokes (this is JfreeChart responsibility). The 
> version 1.02b
> >supports alpha blending in strokes. However, when opacity is 
> present the
> >viewer switches off line smoothing, That's why you see the 
> text more blurred
> >but if you magnify it you'll see that it's the same in both cases.
> >
> >Best Regards,
> >Paulo Soares
> >
> >----- Original Message -----
> >From: "Maarten Coene" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, March 05, 2004 15:54
> >Subject: [iText-questions] PDF documents created by iText 
> 1.02b doesn't look
> >as good as with 1.00
> >
> >
> >  
> >
> >>Hi,
> >>
> >>I have a PDF document with a chart in it. The chart is generated by
> >>JFreeChart and is added to the document with the code 
> below. With iText
> >>version 1.00, the resulting PDF looks excelent, but with 
> iText 1.02b,
> >>the chart in the generated PDF doesn't look as good as with 
> version 1.00
> >>. More in specific, the displayed font in 1.02b is not as 
> sharp as in
> >>version 1.00 .
> >>
> >>I've put 2 generated PDF documents here:
> >>with iText 1.00: http://www.qmedit.com/temp/chart-1.00.pdf
> >>with iText 1.02b: http://www.qmedit.com/temp/chart-1.02b.pdf
> >>
> >>any idea what could be wrong ?
> >>
> >>thanks,
> >>Maarten
> >>
> >>Here is the piece of code that adds the JFreeChart:
> >>
> >>Document doc = ...;
> >>JFreeChart chart = ...;
> >>
> >>DefaultFontMapper mapper = new DefaultFontMapper();
> >>PdfContentByte cb = writer.getDirectContent();
> >>PdfTemplate tp = cb.createTemplate(width, height);
> >>Graphics2D g2 = tp.createGraphics(width, height, mapper);
> >>Rectangle2D r2D = new Rectangle2D.Float(0, 0, width, height);
> >>
> >>chart.draw(g2, r2D);
> >>g2.dispose();
> >>Image img = Image.getInstance(tp);
> >>
> >>/*
> >> * we put the graph in a table so it is automatically placed on
> >> * a new page if it doesn't fit on the current one
> >> */
> >>PdfPTable graphTable = new PdfPTable(1);
> >>graphTable.setWidthPercentage(100);
> >>PdfPCell cell = new PdfPCell(img);
> >>cell.setBorderWidth(0);
> >>graphTable.addCell(cell);
> >>graphTable.setHorizontalAlignment(Element.ALIGN_LEFT);
> >>doc.add(graphTable);
> >>    
> >>
> >
> >  
> >
> 
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to