Re: FOP Encrypted files can not be opened with Mac's Preview?

2009-01-29 Thread Andreas Delmelle

On 29 Jan 2009, at 00:48, Peter Coppens wrote:

Hi Peter


Kind of you to take the time to try this.

I am on Preview Version 4.1 (469.4) on MacOs 10.5.6


Same here.


FO is as simple as it gets I think

Attached the pdf with fop 0.95...if it makes it through the list  
server.

Rendered it with
fop -u -noprint -nocopy -fo t2.fo -pdf t2.pdf


One tiny remark: is it deliberate that you specify the -u parameter  
without specifying a password, or is this a typo?
If I do that here, the print and copy restrictions are applied, but no  
password is asked when opening the file. It has the same effect as  
omitting the '-u' parameter.


Note: if you don't specify an owner password '-o password', then FOP  
generates a random one, so it will become rather difficult to get  
around those restrictions. :-)


It opens in Acrobat reader without further ado, but I get the  
password input

screen of Preview


Same here with your PDF. I notice you are using FOP 0.95.
I think the news is good, since I must admit, I only tried FOP Trunk.

If I judge correctly, the change I committed (which Jeremias mentioned  
as a fix in Bugzilla 40557) could have something to do with it. Before  
that change, FOP generated two /ID entries in the trailer in case  
the document was encrypted, and this caused problems in earlier  
versions of Acrobat too...


Can you confirm that the issue does not occur with FOP Trunk?


Cheers

Andreas

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



Re: FOP Encrypted files can not be opened with Mac's Preview?

2009-01-29 Thread Peter Coppens
 One tiny remark: is it deliberate that you specify the -u parameter
 without specifying a password, or is this a typo?
 If I do that here, the print and copy restrictions are applied, but no
 password is asked when opening the file. It has the same effect as
 omitting the '-u' parameter.
The idea is people can open the pdf without any password but can not e.g.
copy text from it.

 If I judge correctly, the change I committed (which Jeremias mentioned
 as a fix in Bugzilla 40557) could have something to do with it. Before
 that change, FOP generated two /ID entries in the trailer in case
 the document was encrypted, and this caused problems in earlier
 versions of Acrobat too...
 
 Can you confirm that the issue does not occur with FOP Trunk?
It does. Wonderful!
 
 
 Cheers
 
 Andreas

Many thanks indeed!
Peter



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



Re: FOP Encrypted files can not be opened with Mac's Preview?

2009-01-28 Thread Andreas Delmelle

On 28 Jan 2009, at 23:31, Peter Coppens wrote:

Hi Peter

We are currently using, on customer request, fop’s encryption  
features to disallow e.g. copying of text.


Works fine when the pdf is opened in Acrobat but does not work in  
MacOs’s Preview (10.5.something)


I cannot immediately reproduce that over here (10.5.6) with a  
relatively simple FO producing a single page. Tested -noprint -nocopy  
-u test, and encountered no issues opening the file in Preview.


Anything special about the FO and/or PDF that could be causing this?


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



Re: FOP Encrypted files can not be opened with Mac's Preview?

2009-01-28 Thread Peter Coppens
Andreas,

Kind of you to take the time to try this.

I am on Preview Version 4.1 (469.4) on MacOs 10.5.6

FO is as simple as it gets I think

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
  fo:simple-page-master master-name=pm page-height=25cm
page-width=20cm margin-top=1cm
margin-bottom=1cm margin-left=1.5cm
margin-right=1.5cm
fo:region-body/
  /fo:simple-page-master
  /fo:layout-master-set

  fo:page-sequence master-reference=pm
  fo:flow flow-name=xsl-region-body
fo:block-container absolute-position=fixed top=4cm left=4cm 
  fo:block 
fo:inlineThis is text/fo:inline
  /fo:block
/fo:block-container
/fo:flow
  /fo:page-sequence
/fo:root


Attached the pdf with fop 0.95...if it makes it through the list server.
Rendered it with 
 fop -u -noprint -nocopy -fo t2.fo -pdf t2.pdf


It opens in Acrobat reader without further ado, but I get the password input
screen of Preview

Adding a password makes Acrobat ask for it and then open the file. Preview
refuses to open it even if the password is entered.

Thanks!

peter

 From: Andreas Delmelle andreas.delme...@telenet.be
 Reply-To: fop-users@xmlgraphics.apache.org
 Date: Thu, 29 Jan 2009 00:12:23 +0100
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP Encrypted files can not be opened with Mac's Preview?
 
 On 28 Jan 2009, at 23:31, Peter Coppens wrote:
 
 Hi Peter
 
 We are currently using, on customer request, fop¹s encryption
 features to disallow e.g. copying of text.
 
 Works fine when the pdf is opened in Acrobat but does not work in
 MacOs¹s Preview (10.5.something)
 
 I cannot immediately reproduce that over here (10.5.6) with a
 relatively simple FO producing a single page. Tested -noprint -nocopy
 -u test, and encountered no issues opening the file in Preview.
 
 Anything special about the FO and/or PDF that could be causing this?
 
 
 Andreas
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 



t2.pdf
Description: Binary data
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org