https://issues.apache.org/bugzilla/show_bug.cgi?id=47296

           Summary: Referenced Fill URL not applied when PDF Encrypted
           Product: Fop
           Version: 0.95
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: lea.thur...@onesoon.co.uk
                CC: lea.thur...@onesoon.co.uk


Created an attachment (id=23740)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23740)
Filled rectangle pattern not applied.

We are generating the following SVG and then using FOP to convert this into a
PDF. The PDF is rendered correctly and the referenced pattern applied if we do
not encrypt the PDF. As soon as we encrypt the PDF the pattern is not applied.
In both cases the SVG is identical. 

<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";> 
<svg xml:space="preserve" height="297mm" width="210mm"> 
  <defs> 
    <pattern width="1" x="0" height="1" y="0" id="1219915834789"
patternUnits="userSpaceOnUse"> 
      <image width="1" x="0" height="1" id="img1" y="0"
xlink:href="file:/tmp/A12/89.png"/> 
    </pattern> 
  </defs> 
  <rect fill="url(#1219915834789)" x="1.0in" width="1.0in" height="1.0in"
y="1.0in" stroke="none"/> 
</svg> 

The code being used to encrypt the pdf is as follows: 

userAgent.getRendererOptions().put( 
  "encryption-params", 
   new PDFEncryptionParams(null, null, false, true, true, true) 
);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to