Feasibility of creating signed PDF files

2002-07-17 Thread Miguel A Paraz

Hi,
I'm looking into the feasibility of extending FOP to produce signed PDF
files using the PDF Public-Key Digital Signature and Encryption Specification.

What are in the issues in gluing together FOP and the JCE to produce this?
Could I give the signing extension access to the entire document, to create
the signature?

Thanks in advance.


-- 
http://mparaz.com/journal/
+63-916-423-7922



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Feasibility of creating signed PDF files

2002-07-17 Thread Keiron Liddle

Hi,

If I understand it properly you would need to add an Encrypt pdf object
that is referenced in the documents trailer dictionary.
The you would need to encrypt all pdf streams using the appropriate
algorithm.
If JCE can handle this then it would be used to encrypt the stream.

Currently we have a few filters for other purposes, this would be
another filter added to the list (I presume it needs to be last in the
list) and implements PDFFilter. The encode method would do the
encryption based on the algorithm and key.

This filter would probably be setup using the configuration.

What would need to be done:
- implement the encrypt pdf object that contains the various dictionary
values
- implement the PDFFilter that does the encryption, using JCE
- organise the configuration for password etc.

I hope that answer your quesations.

Keiron.

On Wed, 2002-07-17 at 12:17, Miguel A Paraz wrote:
 Hi,
 I'm looking into the feasibility of extending FOP to produce signed PDF
 files using the PDF Public-Key Digital Signature and Encryption Specification.
 
 What are in the issues in gluing together FOP and the JCE to produce this?
 Could I give the signing extension access to the entire document, to create
 the signature?
 
 Thanks in advance.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




ClassCastException in StreamRenderer$RenderQueueEntry

2002-07-17 Thread Trond Aasan

fop 0.20.4

java.lang.ClassCastException: org.apache.fop.apps.StreamRenderer$RenderQueueEntry at 
org.apache.fop.apps.StreamRenderer.getPreviousPage(StreamRenderer.java:349)

StreamRenderer.java:349:
  previousPage = (Page)renderQueue.elementAt(pageIndex - 1);

This should be something like:
  previousPage = ((RenderQueueEntry)renderQueue.elementAt(pageIndex - 1)).getPage();

-- 
Trond

In order to dial out, it is necessary to broaden one's dimension.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




[UML]: Poseidon license key

2002-07-17 Thread RamanaJV

HI All,
I have installed Poseidon 1.3.1 and it is asking me for the license
key when I start it. But, I couldn't find anything like that in the home
directory of Poseidon. 
Please, help me.

Ramana.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-break-inside=avoid

2002-07-17 Thread Todd Migliore



My document contains one repeatingblock of data. The data 
varies in length with each iteration. I need to force a page break if an 
iteration of the block of data can notentirely fit onthe current 
pagepage. From what I understand page-break-inside="avoid" is the 
way to go about this,unfortunately it seems this feature is not yet 
implemented(version-0.20.3). Does anyone know of solution to this 
problem? Thanks in advance.

T


Re: Feasibility of creating signed PDF files

2002-07-17 Thread Miguel A Paraz

On Wed, Jul 17, 2002 at 02:58:13PM +0200, Keiron Liddle wrote:
 If I understand it properly you would need to add an Encrypt pdf object
 that is referenced in the documents trailer dictionary.
 The you would need to encrypt all pdf streams using the appropriate
 algorithm.
 If JCE can handle this then it would be used to encrypt the stream.

Thanks for the reply!  

My project is simpler - I only have to generate a signature for the stream,
not encrypt it.

I haven't started coding, but there is java.security.Signature.update(byte[])
which is used to build up the signature.  


-- 
http://mparaz.com/journal/
+63-916-423-7922



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-break-inside=avoid

2002-07-17 Thread J.Pietschmann

Todd Migliore wrote:
 My document contains one repeating block of data.  The data varies in 
 length with each iteration.  I need to force a page break if an 
 iteration of the block of data can not entirely fit on the current 
 page page.  From what I understand page-break-inside=avoid is the way 
 to go about this, unfortunately it seems this feature is not yet 
 implemented(version-0.20.3).  Does anyone know of solution to this 
 problem?  Thanks in advance.
  
 T   

Look here for hints:
  http://marc.theaimsgroup.com/?l=fop-userm=102102545323696w=2

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: [UML]: Poseidon license key

2002-07-17 Thread Arved Sandstrom

 -Original Message-
 From: RamanaJV [mailto:[EMAIL PROTECTED]]
 Sent: July 17, 2002 11:12 AM
 To: [EMAIL PROTECTED]
 Subject: [UML]: Poseidon license key

 HI All,
   I have installed Poseidon 1.3.1 and it is asking me for the license
 key when I start it. But, I couldn't find anything like that in the home
 directory of Poseidon.
   Please, help me.

Hi, Ramana

Right off Gentleware's website, for Poseidon CE:


First start of Poseidon
During startup, Poseidon expects to find a key file called
'InterimPoseidonCE.key' in the installation directory 'poseidon1.3', in
'poseidon1.3/bin' (this is where the installation puts it), or in your home
directory. All configuration files are put in the directory 'poseidon/CE' in
your home directory.

If you want to set another home directory for Poseidon's configuration, set
the environment variable POSEIDONCE_HOME prior to starting Poseidon.

At startup, you can register with Gentleware to receive a final key for
PoseidonCE. The shipped interim key runs for 1000 days, the final key is
unlimited.


I just downloaded and unzipped the latest, and the interim key file is
certainly present, in the bin/ directory.

Arved


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]