You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/06/02 10:50:33 UTC
DO NOT REPLY [Bug 47296] New: Referenced Fill URL not applied when
PDF Encrypted
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.thurman@onesoon.co.uk
CC: lea.thurman@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.
DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF
Encrypted
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
--- Comment #1 from Andreas L. Delmelle <ad...@apache.org> 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
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:02 UTC ---
resetting P2 open bugs to P3 pending further review
--
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
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
Andreas L. Delmelle <ad...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|0.95 |1.0dev
--- Comment #4 from Andreas L. Delmelle <ad...@apache.org> 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.
DO NOT REPLY [Bug 47296] Referenced Fill URL not applied when PDF
Encrypted
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
--- Comment #2 from Lea Thurman <le...@onesoon.co.uk> 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
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
--
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
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47296
--- Comment #3 from Lea Thurman <le...@onesoon.co.uk> 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.