Created attachment 23493 [details] patch for PDFGraphics2D.writeClip(Shape) The current implementation of writeClip(Shape) of PDFGraphics2D checks whether the given clipping shape is empty. But if the shape has no points (i.e. shape.getPathIterator(...).isDone() returns true) there will only the instructions W n written to the pdf page content stream. The attached patch will fix this by checking if the PathIterator has at least one segment. If not, it will return without doing anything.
Thanks for the patch, Francois. Committed: http://svn.apache.org/viewvc?rev=766596&view=rev Changes to your patch: - replaced tab character with spaces.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed