File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Setting keywords in PDF with JasperReports/iReport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Setting keywords in PDF with JasperReports/iReport" Watch "Setting keywords in PDF with JasperReports/iReport" New topic
Author

Setting keywords in PDF with JasperReports/iReport

Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
Hello everyone.
I'm in the need to put some keywords in a PDF file. By now, we use JasperReports/iReport as our main library to output PDF documents, and it worked quite well till today.
This new request, though, seems to be hard since I can't find documentation or examples to let me understand how to put keywords in a PDF document with this framework. Actually, I'm not even sure if this can be done at all with JasperReports.
I'd like some input about this subject, if you know if we can solve this task with JR or if we should look some other library, and in this case, which library should we pick.
I'm not asking for examples or source code (although those would be very appreciated), just an input based on your own experience about this problem would be great.
Thank you in advance for your help and support.

Regards.

Matteo.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Matteo, what do you mean by Key words? (I'm not a PDF expert)


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
Well, I'm not a PDF expert too. PDF keywords are just ... keywords. Like HTML keywords, you can insert some metatag inside a PDF to list some words related to the PDF content. Keywords are not displayed when you read the PDF with clients like Acrobat Reader, but they're still there to be managed by other clients which will need additional informations which can't be displayed in the document.
I myself found that iText allow you to set keywords in a PDF document (but only prior to write the PDF document itself), while JasperReport can't manage keywords at this moment (if the informations I've gathered are correct, this feature will be implemented in the future). Unfortunately, JasperReport is our main engine to export PDF documents, so I need to find a way to handle keywords via JasperReport somehow or, if this is not possible, to find some other libraries that allow me to add keywords to an existing document.
I still hope my search capabilities are not perfect and I've missed some topic concerning JR and keywords or some other about Java library which handle PDF documents.
I wonder why PDF has become a standard when it comes to exchange documents when it is so far from being manageable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting keywords in PDF with JasperReports/iReport