RE: [iText-questions] PdfGraphics2D and PDFContentByte problem

2003-07-04 Thread Paulo Soares
Fw: [iText-questions] PdfGraphics2D and PDFContentByte > problem > > > > > > You don't need a template. Do it this way: > > > > > > PdfWriter writer = (PdfWriter)gc.getWorkingObject(); > > > PdfContentByte cb = writer.getDirectContent(); &g

Fw: [iText-questions] PdfGraphics2D and PDFContentByte problem

2003-07-04 Thread Ligius Astratinei
> > You don't need a template. Do it this way: > > > > PdfWriter writer = (PdfWriter)gc.getWorkingObject(); > > PdfContentByte cb = writer.getDirectContent(); > > cb.saveState(); > > Graphics2D g2 = cb.createGraphics(width, height, defaultFontMapper); > > > > ...do graphics stuff on g2... > > > >

RE: [iText-questions] PdfGraphics2D and PDFContentByte problem

2003-07-04 Thread Paulo Soares
> -Original Message- > From: Ligius Astratinei [SMTP:[EMAIL PROTECTED] > Sent: Friday, July 04, 2003 15:51 > To: [EMAIL PROTECTED] > Subject: [iText-questions] PdfGraphics2D and PDFContentByte problem > > Hello, > I'm trying to define an URL act

[iText-questions] PdfGraphics2D and PDFContentByte problem

2003-07-04 Thread Ligius Astratinei
Hello, I'm trying to define an URL action for a PDF document but it doesn't seem to work.   Here are some code excerpts: PdfWriter writer = (PdfWriter)gc.getWorkingObject(); PdfContentByte cb = writer.getDirectContent(); PdfTemplate tp = cb.createTemplate(pageWidth, pageHeight); Graphics2D g2