DO NOT REPLY [Bug 47296] New: Referenced Fill URL not applied when PDF Encrypted

View: New views
5 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 47296] New: Referenced Fill URL not applied when PDF Encrypted

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
        ReportedBy: lea.thurman@...
                CC: lea.thurman@...


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.

DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF Encrypted

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #1 from Andreas L. Delmelle <adelmelle@...>  2009-06-04 14:05:32 PST ---
Hi Lea

Sorry for the rather late reply...

Can you also attach the referenced PNG? That would make it slightly easier for
us to reproduce the issue using the attached SVG. Thanks!

Andreas

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

DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF Encrypted

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #2 from Lea Thurman <lea.thurman@...>  2009-06-09 05:02:41 PST ---
Created an attachment (id=23780)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23780)
Image associated with SVG

Images as requested by Andreas.

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

DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF Encrypted

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





--- Comment #3 from Lea Thurman <lea.thurman@...>  2009-06-11 08:09:22 PST ---
Hi Andreas,

Any progress with regards this defect? If it is not being looked into then I
will try to pick it up myself.

Many Thanks
Lea.

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

DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF Encrypted

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Andreas L. Delmelle <adelmelle@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.95                        |1.0dev




--- Comment #4 from Andreas L. Delmelle <adelmelle@...>  2009-06-11 08:35:18 PST ---
(In reply to comment #3)

Hi Lea

> Any progress with regards this defect? If it is not being looked into then I
> will try to pick it up myself.

No progress yet. So far, I have only been able to confirm that current FOP
Trunk still exhibits the issue, but I'm not sure where to begin looking...
Maybe something with org.apache.fop.pdf.PDFPattern, and the way it is handled
in case of encryption. I notice the toPDF() method does not check for
encryption, so unless this is automatically handled by the OutputStream that is
passed in, that may explain why the viewer cannot parse the pattern correctly
(?)

Regards

Andreas

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