diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-03-16 17:54:54 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-03-16 17:54:54 +0000 |
commit | 92a5ef654877571635164b70e5c211e9dc0cc740 (patch) | |
tree | 4f4a8a840cbe0a43bb418cd954557b5c10a5eea7 /src | |
parent | e096f55d71f7d85d3e7e014530a290d532a95036 (diff) | |
download | xmlgraphics-fop-92a5ef654877571635164b70e5c211e9dc0cc740.tar.gz xmlgraphics-fop-92a5ef654877571635164b70e5c211e9dc0cc740.zip |
FOP-2216: PDF forms are offset; patch submitted by Simon Steiner
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1457282 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-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"); |