diff options
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFContentGenerator.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java index 6235ceda9..dde6b0ef3 100644 --- a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java +++ b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java @@ -61,6 +61,7 @@ public class PDFContentGenerator { private boolean inMarkedContentSequence; private boolean inArtifactMode; + private AffineTransform transform; /** * Main constructor. Creates a new PDF stream and additional helper classes for text painting @@ -89,6 +90,10 @@ public class PDFContentGenerator { this.colorHandler = new PDFColorHandler(document.getResources()); } + public AffineTransform getAffineTransform() { + return transform; + } + /** * Returns the applicable resource context for the generator. * @return the resource context @@ -303,6 +308,7 @@ public class PDFContentGenerator { * @param transform the transformation matrix (in points) */ public void concatenate(AffineTransform transform) { + this.transform = transform; if (!transform.isIdentity()) { currentState.concatenate(transform); currentStream.add(CTMHelper.toPDFString(transform, false) + " cm\n"); |