Nevermind. In case anybody is wondering, call cb.newPath() after a clip. According to the pdf spec, painting operators close a path, but clip ('W' or 'W*') is not really a painting operator. 'newPath()' is like a null painting operator.
> -----Original Message----- > From: Kevin Galligan > Sent: Wednesday, March 13, 2002 5:11 PM > To: '[EMAIL PROTECTED]' > Subject: PdfContentByte trouble > > I've been having some trouble using PdfContentByte with our code. We've > been using pdflib with some of our other stuff, so it was easier to > convert using a low level pdf writer than to use the document objects. > We're getting into that later, but for now we're trying to us > PdfContentByte. Anyway... > > I'm trying to clip free form shapes, but I keep getting... > > 'There was an error processing a page. Wrong operand type' > > when I open the file in Acrobat 4.05a. If I take clipping out it works > fine. I'm only trying a basic object now (Rectange). My code iterates > over the shape (PathIterator), and includes a closePath() at the end, but > no matter what I do it bombs. > > //cb is the PdfContentByte, shape is the rectangle > > shapePath(shape); > cb.clip(); > > The only clipping example I've seen in the code actually uses the > 'rectangle' function of PdfContentByte. This won't work because we need > to do arbitrary shapes. > > Any help would be great. > > Thanks, > -Kevin (Newbie) Galligan > > ================================================================= 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