Even though you specifically asked Paulo for an opinion, I'm going to provide 
mine too. :-)

The logic behind having a PdfGraphics2D class is that a wide range of 
existing applications that are already designed to render content on a 
Graphics2D context suddenly gain the ability to generate PDF output with 
little or no additional effort.  So PDF versions of charts from JFreeChart, 
Chart2D, JChart, etc. can be created, GUI applications with printing 
functions can now print to a PDF file, UML diagram editors can create PDF 
versions of the diagrams, and all kinds of other neat things.  Furthermore, 
people who already know the Graphics2D API can start productively creating 
graphical PDF content without taking time to learn the iText API in depth.

A little runtime overhead is introduced in the process of translating the API 
methods to the iText methods that do the actual work, but a vast amount of 
code writing is avoided.  If JFreeChart is used enough for PDF charts that 
somebody finds it worthwhile to spend the time to write code that uses the 
data in a JFreeChart object to call iText methods directly in order to cut 
out that overhead, there's no problem with doing that also.  But in the 
meantime, we have something that works fairly well for JFreeChart and a bunch 
of other libraries as well.  Being able to draw something to an image, GUI 
panel, PDF file, SVG file, or printed page without writing separate rendering 
code for each output is incredibly useful...

Jeremy Bowman

On Thursday 11 April 2002 10:45 pm, you wrote:
> Fellows:
>
> I cannot agreee that we need a PdfGraphics class since all the operators
> are already in PDF, i.e drawArc(), drawRect(). To intergrate JFreeChart
> into iText is basically taking a JFreeChart as input object and use iText
> as Plot.
>
> The problem is how to interpret JFreeChart object and its Datasets. PDF has
> more than enough operators to handle Graphics2D drawing methods.
>
> However, if we want JFreeChart to have the ability to produce PDF's, we do
> need a PdfGraphics class since it will provide the interface between
> Graphics2D and PDF operators. I am not quite sure which direction we are
> heading? As for me, I prefer to take JFreeChart object into iText. What do
> u think, Paulo?
>
>
> With regards
>
> Phillip Pan
> -----------
>
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to