Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.6
-
None
-
Operating System: All
Platform: All
Description
Hi all,
I extended PSDocumentGraphics2D to generate a more optimized PS code, and I noticed that the PSGenerator always wrote the same transformation matrix again and again.
After some search, I found that the startPage method in AbstractPSDocumentGraphics2D uses the concatMatrix method of PSGenerator, which alters the PSGenerator current state to save the given AffineTransform.
I've attached a simple TestCase which shows the problem (fails with current trunk code), and I will attach a simple patch:
Use gen.writeln(gen.formatMatrix(at) + "concat") instead of gen.concatMatrix(at);