This application contains an example of an agent that export some information of a NotesDocument in a PDF file.
I have always trying to have the opportunity to do it. I know that is so late because Lotus 8 allows export to PDF, but anyway, it could be used in previous versions and for web applications.
I was able to create this export process thanks to iText (iText) that offers a a free Java-PDF library.
Take account that the example is so simple, but the API (iText API) is so complete.
1.- create an agent with this code: Code
2.- Go to iText and download the API.
3.- Add the itext-xxx.jar to the project.
4.- Change the names of the fields or create a form with them.
5.- Save the agent.
6.- Done.