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
> > 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...
> >
> >
> -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
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