I'm no xml specialist but probably the best approach would be for you to
create new tags and alter the xml parser.

Best Regards,
Paulo Soares

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 17:44
Subject: Re: [iText-questions] jfreecharts look bad in itext?


> The basic challenge is that I am using the xml library.  The servlet
> that
> creates the chart is "stateless" all parameters it needs to create a
> chart
> are passed to it.  I also need to output the same document into html, so
> I
> don't want a "pdf only" solution.
>
> So maybe I can create some xml that will represent both an "html" way of
> getting an image, and an "pdf way" to get an image.  State to the
> servlet
> is passed via the url parameters.  But I need to pass state to the image
> creator for the pdf document.
>
>  Here is what I think i will do for xml pdf
>
> <image url="http://xxx"; class="ImagImplementor">
> <parm name="attribute1" value="1"/>
> <parm name="attribute2" value="2"/>
> </image>
>
> url would still be provided so that html writer would still work.
> class would be a java class would be draw the chart into the pdf
> document.
> We would do a Class.forName to instantiate it.
> the parms would have to be passed to the MyChartImplementor to pass
> state
> to the chart creating machine.  Image would instantiate
> MyChartImplementor with the state via a list of attributes..
>
> I would have to implementor a new constructor for itext.Image object
> that
> would take these parameters, and use the image class to get it's image.
>
> Any comments?
>
> On Tue, 27 Aug 2002, Paulo Soares wrote:
>
> > You are including the charts as image and as such the charts will only
> look
> > as good as the image resolution. There's a document in the JFreeChart
> site
> > where it's explained how to include a chart using
> > PdfContentByte.createGraphics(). You can also use now the new
> > PdfContentByte.createGraphicsShapes() to have the fonts drawn as
> shapes.
> >
> > Best Regards,
> > Paulo Soares
> >
> > ----- Original Message -----
> > From: "Phillip Rhodes" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 27, 2002 13:17
> > Subject: [iText-questions] jfreecharts look bad in itext?
> >
> >
> > > I have some reasonable looking charts coming from jfreechart:
> > >
> http://ldi.rhoderunner.com/hra/servlet/chart?val=x&categories=November+1
> > >
> 999&chartValues=32&categories=November+1999&chartValues=32&showLegend=fa
> > > lse&title=Weight&series=Weight
> > >
> > >
> http://ldi.rhoderunner.com/hra/servlet/chart?val=x&title=Health+Score&sh
> > >
> owLegend=true&series=November+1999&chartValues=5&chartValues=40&chartVal
> > >
> ues=1&chartValues=1&chartValues=57&chartValues=25&chartValues=30&series=
> > >
> November+1999&chartValues=5&chartValues=40&chartValues=1&chartValues=1&c
> > >
> hartValues=57&chartValues=25&chartValues=30&categories=Cancer&categories
> > >
> =Heart+Disease&categories=Emphysema&categories=Cirrhosis&categories=Arth
> > > ritis&categories=Overall&categories=Self-assessed+Health
> > >
> > > When I put them into pdf (via <image url="xx"/>)  , they seem to
> lose
> > > their
> > > sharpness.  They seem fuzzy or something.
> > > Here is an example:
> > >
> > > http://ldi.rhoderunner.com/logs/pdf/test.pdf  There are several
> charts
> > > in
> > > this document, all illustrate the problem.
> > >
> > > I am not looking for anyone to solve my problem for me, just looking
> for
> > >
> > > some general directions to improve the appearance of my charts.
> > >
> > > Thanks!
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by: OSDN - Tired of that same old
> > > cell phone?  Get a new here for FREE!
> > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> >
>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to