> The first one because there's a perfectly good, working example online
> that you should try before saying "it doesn't work".
I never said the example did not work, did I? The example online replaces a
button with a pict, which is not what I want to do. I am using part of the
example to replace fields with text, and I mentioned it works great. I also
do have a chart that I created previously with iText using Java2D to produce
a pdf document. I need to include that chart in a larger multi-page pdf
document (one of my templates) and I am trying to find a way of doing that.
The closest I saw was with jFreeChart, but I don't know the inner working of
jFreeChart.

For me, I had to keep my chart and the main document separate until I
included the chart in to the main document. I didn't see any mention of
using the same writer for two different part of the document.

> If you want to create a PdfTemplate, you need to create it for the
> correct writer. In your case stamper.getWriter();

I'll try that, thanks for the pointer.

Fred

On Mon, Feb 22, 2010 at 15:15, 1T3XT info <i...@1t3xt.info> wrote:

> Fred Janon wrote:
> > Not sure how you are related to iText or Bruno either. Is the next
> > answer from you as well?
>
> Different persons have access to the 1T3XT @ 1t3xt.info address,
> but yesterday, both answers came from Bruno.
>
> The first one because there's a perfectly good, working example online
> that you should try before saying "it doesn't work".
>
> The second one because it's always tempting to look at a problem. And
> disappointing when somebody "didn't get it" and "blames the book" for it.
>
> You're creating a PdfTemplate that "BELONGS" to the PdfWriter of a
> Document [1]. Then you try using this PdfTemplate for a PdfWriter of a
> PdfStamper [2] that has no relation whatsoever with the Document [1].
>
> If you want to create a PdfTemplate, you need to create it for the
> correct writer. In your case stamper.getWriter();
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to