Michael Harig wrote: > Hi, > > I want to print a JPanel in a PDF document. > Structure will be: a title, some arbitrary text, the JPanel, some > tables, more arbitrary text. > > The examples I found that print images use either a PDFContentByte or > are some HTML, XML processing stuff using IText Image. > > When using a template and PDFContentByte, one needs to know the position > of the last written text to place the graphic below, and then one must > place the next elements (the tables and more text) after that. I didn't > find out how to achieve these 2 things, nor how to convert a JPanel > graphic to a IText Image for the other approach. > > Any hints?
I don't understand the question. Can you please tell us if you're using PdfGraphics2D? If so, what is the problem? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Download Intel® 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.itextpdf.com/book/ 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/