You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lea Thurman <le...@onesoon.co.uk> on 2008/08/28 11:59:23 UTC

Referenced pattern not applied when PDF is encrypted

Hi,

We are using FOP.0.95Beta on XP Pro and Mac OS X 10.5 and have encountered
the following problem when we encrypt our PDF's on both OS's.

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)
);

Apologies if this is overly wordy. I have tried to simplify the scenario as
much as possible.

Any help would be much appreciated.

Regards
Lea.

-- 
View this message in context: http://www.nabble.com/Referenced-pattern-not-applied-when-PDF-is-encrypted-tp19197539p19197539.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Referenced pattern not applied when PDF is encrypted

Posted by Lea Thurman <le...@onesoon.co.uk>.
Hi Andreas,

We have ran the latest codebase and this still seems to be a problem. Are
you able to confirm this is still the case?

If it's still an issue then I will log the issue and have a look into it.

Many Thanks
Lea.

Andreas Delmelle-2 wrote:
> 
> On Sep 3, 2008, at 14:02, Lea Thurman wrote:
> 
> Hi
> 
>> We am more than happy to spend time on this and hopefully fix and  
>> submit it
>> back. However having never filed a defect or committed to FOP  
>> before is
>> there are starter for 10 that tells me about servers/repositories/ 
>> locations
>> etc and the general process to be followed.
> 
> If you mean you potentially will do some development on the FOP  
> codebase, and want to donate it back, then the main 'Development'  
> page would be a good place to start:
> http://xmlgraphics.apache.org/fop/dev/index.html
> 
> If OTOH, you simply want to log the issue, supply more info (and  
> preferably some FO/SVG samples as well), then this is where you need  
> to be:
> http://xmlgraphics.apache.org/fop/bugs.html
> 
> 
> Cheers
> 
> Andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Referenced-pattern-not-applied-when-PDF-is-encrypted-tp19197539p23815875.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Referenced pattern not applied when PDF is encrypted

Posted by Andreas Delmelle <an...@telenet.be>.
On Sep 3, 2008, at 14:02, Lea Thurman wrote:

Hi

> We am more than happy to spend time on this and hopefully fix and  
> submit it
> back. However having never filed a defect or committed to FOP  
> before is
> there are starter for 10 that tells me about servers/repositories/ 
> locations
> etc and the general process to be followed.

If you mean you potentially will do some development on the FOP  
codebase, and want to donate it back, then the main 'Development'  
page would be a good place to start:
http://xmlgraphics.apache.org/fop/dev/index.html

If OTOH, you simply want to log the issue, supply more info (and  
preferably some FO/SVG samples as well), then this is where you need  
to be:
http://xmlgraphics.apache.org/fop/bugs.html


Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Referenced pattern not applied when PDF is encrypted

Posted by Lea Thurman <le...@onesoon.co.uk>.
Hi,

We am more than happy to spend time on this and hopefully fix and submit it
back. However having never filed a defect or committed to FOP before is
there are starter for 10 that tells me about servers/repositories/locations
etc and the general process to be followed.

Many Thanks
Lea.


Jeremias Maerki-2 wrote:
> 
> Please file a bug in Bugzilla for this and add all the information here
> to the issue. Thanks.
> 
> Encryption is always a bit tricky and our PDF library has still a few
> messy parts which can lead to certain corner cases not to be handled
> correctly when encryption is present. Someone will have to fix it. Not
> sure if I'll have time and energy very soon. At least, with the Bugzilla
> entry it won't get forgotten.
> 
> On 28.08.2008 11:59:23 Lea Thurman wrote:
>> 
>> Hi,
>> 
>> We are using FOP.0.95Beta on XP Pro and Mac OS X 10.5 and have
>> encountered
>> the following problem when we encrypt our PDF's on both OS's.
>> 
>> 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)
>> );
>> 
>> Apologies if this is overly wordy. I have tried to simplify the scenario
>> as
>> much as possible.
>> 
>> Any help would be much appreciated.
>> 
>> Regards
>> Lea.
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Referenced-pattern-not-applied-when-PDF-is-encrypted-tp19197539p19197539.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Referenced-pattern-not-applied-when-PDF-is-encrypted-tp19197539p19287849.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Referenced pattern not applied when PDF is encrypted

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Please file a bug in Bugzilla for this and add all the information here
to the issue. Thanks.

Encryption is always a bit tricky and our PDF library has still a few
messy parts which can lead to certain corner cases not to be handled
correctly when encryption is present. Someone will have to fix it. Not
sure if I'll have time and energy very soon. At least, with the Bugzilla
entry it won't get forgotten.

On 28.08.2008 11:59:23 Lea Thurman wrote:
> 
> Hi,
> 
> We are using FOP.0.95Beta on XP Pro and Mac OS X 10.5 and have encountered
> the following problem when we encrypt our PDF's on both OS's.
> 
> 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)
> );
> 
> Apologies if this is overly wordy. I have tried to simplify the scenario as
> much as possible.
> 
> Any help would be much appreciated.
> 
> Regards
> Lea.
> 
> -- 
> View this message in context: http://www.nabble.com/Referenced-pattern-not-applied-when-PDF-is-encrypted-tp19197539p19197539.html
> Sent from the FOP - Users mailing list archive at Nabble.com.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org