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 David Vaartjes <d....@itsec-ss.nl> on 2004/07/12 14:06:58 UTC

PDF encryption?

Hello list,

I'm using apache-FOP to generate PDF-reports from XML data. These 
reports contain enumerations of network information of many host. 
To supply a fast and orderly navigation mechanism we use bookmarks. 
Furthermore, we use URL's within the PDF-report that point to 
external recourses. So far so good...

Because the content of the reports is confidential I use the 
buildin 40bit RC4 PDF encryption mechanism with a user and owner 
password. Everything works great, except the bookmarks and URLs 
won't work anymore after decryption within Acrobat.

When I look in the Bug report of FOP (2004/05/30) is see one entry 
that might describe this problem:
"20480|Ass|Nor|2003-06-04|PDF outline texts are garbled when PDF 
encryption".

Does anyone know if this is the bug report for this exact problem? 
Or is this problem already solved in a recent snapshot release?

Because I'm highly dependent on PDF-encryption and PDF-bookmarks 
within the reports, I am willing to contribute, if possible, into 
solving this problem. I've mailed Patrick C. Lankswert
(PLankswert@InsightBB.COM) who implemented the encryption mechanism 
with the question if he can provide me with more details on how to 
realize this. Haven't heard anything from Patrick so far. Maybe 
I've used an outdated e-mail address?

Hopefully someone on the list can provide me with more details on 
how to get involved, what the exact problem is, or maybe a 
workaround for encrypting without loosing the bookmarks etc?

Thanks for your time,

Kind regards,
-- 
-------------------------------------------------------------------
Ing. David Vaartjes
Security Engineer

<ma...@itsec-ss.nl>

-------------------------------------------------------------------
ITsec Security Services, Postbus 5120, 2000 GC HAARLEM
Tel.+31-(0)235420578, Fax.+31-(0)235345477
http://www.itsec-ss.nl

-------------------------------------------------------------------
Exploit & vulnerability Alerting Service
http://www.evas.nl

ITsec Security Services B.V. may not be held liable for the effects or
damages caused by the direct or indirect use of the information or
functionality provided by this posting, nor the content contained 
within.
Use them at your own risk. ITsec Security Services B.V. bears no
responsibility for misuse of this posting or any derivatives thereof.
-------------------------------------------------------------------


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


Re: PDF encryption?

Posted by Jeremias Maerki <de...@greenmail.ch>.
You've found the right bug. I've added a comment when I've fixed the bug
in CVS HEAD:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20480

Unfortunately, using a dev snapshot won't help you since FOP 0.20.5 is
based on our old maintenance branch which has been frozen and CVS HEAD
is not ready for production. If you fix the bug for 0.20.5 it probably
won't make it into our CVS.

A work-around is to use a third-party tool to encrypt the generated PDF
files.

BTW, normally, you shouldn't mail any developer directly, but to ask on
this list first.

On 12.07.2004 14:06:58 David Vaartjes wrote:
> Hello list,
> 
> I'm using apache-FOP to generate PDF-reports from XML data. These 
> reports contain enumerations of network information of many host. 
> To supply a fast and orderly navigation mechanism we use bookmarks. 
> Furthermore, we use URL's within the PDF-report that point to 
> external recourses. So far so good...
> 
> Because the content of the reports is confidential I use the 
> buildin 40bit RC4 PDF encryption mechanism with a user and owner 
> password. Everything works great, except the bookmarks and URLs 
> won't work anymore after decryption within Acrobat.
> 
> When I look in the Bug report of FOP (2004/05/30) is see one entry 
> that might describe this problem:
> "20480|Ass|Nor|2003-06-04|PDF outline texts are garbled when PDF 
> encryption".
> 
> Does anyone know if this is the bug report for this exact problem? 
> Or is this problem already solved in a recent snapshot release?
> 
> Because I'm highly dependent on PDF-encryption and PDF-bookmarks 
> within the reports, I am willing to contribute, if possible, into 
> solving this problem. I've mailed Patrick C. Lankswert
> (PLankswert@InsightBB.COM) who implemented the encryption mechanism 
> with the question if he can provide me with more details on how to 
> realize this. Haven't heard anything from Patrick so far. Maybe 
> I've used an outdated e-mail address?
> 
> Hopefully someone on the list can provide me with more details on 
> how to get involved, what the exact problem is, or maybe a 
> workaround for encrypting without loosing the bookmarks etc?

-- 
Jeremias Maerki <de...@greenmail.ch>


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


Re: Parsing string or numbers after x characters

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Julien Barbin wrote:
> I'm quite new to the fop mailing list so I have no idea if this problem 
> occurred already and I was unable to find solutions on the web.

Uh, oh!

> My problem is that I receive for example a date in a concatenated format:
> 
> Ex: 20041207
> 
> And I have to retrieve it in a readable format through my xslt-fo 
> transformation.
> 
> Ex: 12 July 2004

FAQ:
  http://www.dpawson.co.uk/xsl/sect2/dates.html#d3164e13

J.Pietschmann

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


Re: Parsing string or numbers after x characters

Posted by Clay Leeds <cl...@medata.com>.
Julien,

On Jul 12, 2004, at 5:27 AM, Julien Barbin wrote:
> My problem is that I receive for example a date in a concatenated 
> format:
>
> Ex: 20041207
>
> And I have to retrieve it in a readable format through my xslt-fo 
> transformation.
>
> Ex: 12 July 2004
>
> I tried using substring for that, but I don't have any reference 
> character to look for in order to parse. Is there a function which 
> parses strings or numbers after a certain amount of characters 
> directly.
>
> Thanks in advance for those which will respond.
>
> Julien

This is more of an XSLT question that would be better made on an XSLT 
list, which you'll find on The FOP Mailing List page [1]. In 
particular, you want the XSLT List on the bottom of the page, but 
you'll find other good information there which you can use in the 
General Information section. Good luck!

Web Maestro Clay

p.s. Even better, you may not have to ask the question. The answer to 
your question is probably accessible from the FOP Resources page[2] in 
Dave Pawson's XSLT FAQ[3]

[1]
http://xml.apache.org/fop/maillist.html

[2]
http://xml.apache.org/fop/resources.html#documents

[3]
http://www.dpawson.co.uk/xsl/sect3/index.html


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


Parsing string or numbers after x characters

Posted by Julien Barbin <jb...@epo.org>.
Hello

I'm quite new to the fop mailing list so I have no idea if this problem 
occurred already and I was unable to find solutions on the web.

My problem is that I receive for example a date in a concatenated format:

Ex: 20041207

And I have to retrieve it in a readable format through my xslt-fo 
transformation.

Ex: 12 July 2004

I tried using substring for that, but I don't have any reference character 
to look for in order to parse.
Is there a function which parses strings or numbers after a certain amount 
of characters directly.


Thanks in advance for those which will respond.


Julien