See http://www.geocities.com/itextpdf/graphics2d-01.zip
I have some ideas for clipping without templates and for fonts. My mail blew, tomorrow 
I'll talk again.

Best Regards,
Paulo Soares

> 
> De: Kevin Galligan <[EMAIL PROTECTED]>
> Data: 10/04/2002 16:45:19
> Para: 'jim moore' <[EMAIL PROTECTED]>,  Jeremy Bowman <[EMAIL PROTECTED]>,  
>       [EMAIL PROTECTED]
> Assunto: RE: PdfGraphics2D class (RE:  [iText-questions] generating graphs
>       )
> 
> 
> 
> > -----Original Message-----
> > From: jim moore [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 10, 2002 11:32 AM
> > To: Jeremy Bowman; [EMAIL PROTECTED]
> > Subject: Re: PdfGraphics2D class (RE: [iText-questions] generating
> > graphs)
> > 
> > 
> > > Some quick points of comparison on the 2 pieces of code so far:
> > > - My code uses a PdfTemplate as the basis of the Graphics 
> > context; I think
> > > this is a more flexible solution than writing directly to a 
> > PdfContentByte
> > > obtained from the PdfWriter, since the template can then be used in
> > multiple
> > > places, as an image, etc.
> > 
> > I actually had mine this way for a while as well as a way of 
> > getting setClip
> > to work. When they call setClip, change the reference to the 
> > current drawing
> > template to a new template with the correct clipping area.
> > 
> > /**
> > * @see Graphics#setClip(Shape)
> > */
> > public void setClip(Shape s) {
> >     PdfTemplate template = 
> > cb.createTemplate(document.getPageSize().width(),
> > document.getPageSize().height());
> >     cb.addTemplate(template, 0, 0);
> >     cb=template;
> >     clip(s);
> > }
> > 
> > This is basically how you are handling setClip. The problem 
> > is, it doesn't
> > seem to work (at least I can't seem to get it to). 
> 
> I don't know how you have your clip method set up, but I ran into clip snags
> when I did my G2D object.  Basically, you have to call...
> 
> cb.clip();
> cb.newPath();
> 
> After that it works fine.  I haven't worked with templates, so I don't know
> how that complicates things.
> 
> -Kevin
> 
> 
> ================================================================= 
> This message contains confidential business information that is 
> intended for use only by the individual or entity to whom it is 
> addressed.  If you are not the intended recipient, you are hereby 
> notified that any disclosure, interception, copying, distribution 
> or the taking of any action in reliance on the contents of this 
> email is prohibited.  If you received this email in error, please 
> notify the sender by forwarding the message back to the sender, 
> and then delete the original information from your system. 
> ================================================================= 
> 
> 
> 
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to