File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes pdf certificates-how to do? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "pdf certificates-how to do?" Watch "pdf certificates-how to do?" New topic

pdf certificates-how to do?

Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 89
Hi all.
I am using apache fop on a linux server, using the command line to convert my xml to pdf using my xsl file which I wrote using an xml editor. Can anyone point me in the direction of where to start if I want to add a security certificate to my pdf so that anyone reading knows it is from a trusted source? Will I have to use a java program to transform and create the pdf rather that the fop command line in order to do this? Also, I'm interested in embedding a bardcode in the pdf too. If anyone has suggestions or links or how to do this using my current method or if I have to approach it a different way then I'd be glad to hear from you.

Tim Moores

Joined: Sep 21, 2011
Posts: 2413
I doubt that FOP has any capabilities like that. I'm fairly certain iText can do it; iText also has some barcode-creation facilities specifically geared towards embedding barcodes in PDFs.

Note that here are two versions of iText: 2 (licensed under the LGPL) and 5 (licensed under the Affero GPL). The latter version generally requires you to obtain a license in any business setting. See for some more information on both versions.
Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 89
Thanks Tim,

I'll have a look.


I agree. Here's the link:
subject: pdf certificates-how to do?
It's not a secret anymore!