-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Fix Version/s: None
-
Component/s: postscript
-
Labels:
-
Environment:Operating System: All
Platform: All
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);