A new Graphics2D is needed for each page and don't forget to call dispose() before moving to the next page.
Best Regards, Paulo Soares > -----Original Message----- > From: Matt Benson [SMTP:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 18:53 > To: Cantrell, Curtis; '[EMAIL PROTECTED]' > Subject: Re: [iText-questions] appending jaa.awt.Printalbes to a > Document > > Document.newPage() should advance pages. You may be > able to print to the same PdfContentByte's Graphics2D > instance after each call to Document.newPage(), or you > may need to make the calls again each time. I would > suspect the former, simpler, behavior would be > exhibited. > > -Matt > > --- "Cantrell, Curtis" <[EMAIL PROTECTED]> > wrote: > > Matt, > > I can print the contents of the first printable in > > the Book to the > > pdf by way of the PdfContentByte. My question is > > how to increase the number > > of pages in the Document and APPEND to the > > PdfContentByte depending on how > > many printable pagables are in the Book. > > > > Curtis > > > > > > >Seems you would want to print to the Graphics2D > > >returned from PdfContentByte. > > > > >-Matt > > > > --- "Cantrell, Curtis" > > <[EMAIL PROTECTED]> > > wrote: > > > I would like to take the contents of a > > > java.awt.print.Book and append them > > > to a pdf Document. > > > Any one know a good way to do this? > > > > > > Thank you, > > > Curtis Cantrell > > > [EMAIL PROTECTED] > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: To learn the > > > basics of securing > > > your web site with SSL, click here to get a FREE > > > TRIAL of a Thawte > > > Server Certificate: > > > http://www.gothawte.com/rd524.html > > > _______________________________________________ > > > iText-questions mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: To learn the > > basics of securing > > your web site with SSL, click here to get a FREE > > TRIAL of a Thawte > > Server Certificate: > > http://www.gothawte.com/rd524.html > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
