Hello, I'm in the process of rendering pdf, no matter the reasons; fonts, images and operators are all ok, except for the clipping path operators.
As Adobe and Sun worked together to build the java graphics rendering engine I see no reason for all other operators to work perfectly ' as is ' and not clipping path operators
Basically, all operations resume, given path and clipping path, to fill and stroke.
my stroke implementation
my fill implementation
Area pathArea=new Area(transform.createTransformedShape(path));
Area clippingPathArea=new Area(clippingPath);
First, I do not see why, despite based on same operands, the stroke operation do not render correctly if written like fill above. In other words, why clipping like fill do not stroke correctly.
Second, testing on different pdf do not always render correctly or do not always fail, I must be missing an important feature
In other words, what is the correct way to apply clipping path to stroke, fill and drawImage operations ?
Thank you very much for your time
Sorry, can't post 50.000+ lines and can't easily isolate problem
Must be a clipping path construction problem but can't see at this time why filling is ok and not stroking using same primitives to build paths...
ok found it, not a path construction problem, just the intersection between non-closed path and clipping path transformed to area
as stated in java.awt.geom.Area doc :
<< Creating an Area from an unclosed (open) Shape results in a closed outline in the Area object. >>