• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting keywords in PDF with JasperReports/iReport

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Matteo, what do you mean by Key words? (I'm not a PDF expert)
 
Matteo Di Furia
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Seriously Rick? Seriously? You might as well just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic