diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-10-16 23:31:17 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-10-16 23:31:17 +0000 |
commit | 39e331287690a4ba25b19cbf1d9af413c3e81aca (patch) | |
tree | d65aca700f849e8e41a844939aa3a80ecf544803 /src/java/org | |
parent | 72d4de19de6175a92213e3c05e11b71dd1ed2714 (diff) | |
download | xmlgraphics-fop-39e331287690a4ba25b19cbf1d9af413c3e81aca.tar.gz xmlgraphics-fop-39e331287690a4ba25b19cbf1d9af413c3e81aca.zip |
FOP-2296: SVG fill pattern not visible with encryption; patch submitted by Simon Steiner
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1532940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFPattern.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFPattern.java b/src/java/org/apache/fop/pdf/PDFPattern.java index 46a6a7378..b9e042815 100644 --- a/src/java/org/apache/fop/pdf/PDFPattern.java +++ b/src/java/org/apache/fop/pdf/PDFPattern.java @@ -269,13 +269,14 @@ public class PDFPattern extends PDFPathPaint { pdfStream = new PDFStream(); pdfStream.setDocument(getDocumentSafely()); pdfStream.add(this.patternDataStream.toString()); + pdfStream.setObjectNumber(getObjectNumber()); pdfStream.getFilterList().addDefaultFilters( getDocument().getFilterMap(), PDFFilterList.CONTENT_FILTER); + getDocument().applyEncryption(pdfStream); encodedStream = pdfStream.encodeStream(); p.append(pdfStream.getFilterList().buildFilterDictEntries()); - p.append("/Length " + (encodedStream.getSize() + 1) - + " \n"); + p.append("/Length " + encodedStream.getSize() + " \n"); } } else { |