While you generate a PDF, you may want to set its different attribute like: author name, title, file description etc. iText jar can help you to set different attributes of a PDF file. Document object provide different methods to add various attributes to a PDF file.
document.addAuthor("Vaani");
document.addCreationDate();
document.addCreator("iText library");
document.addTitle("Hello World PDF");
No comments:
Post a Comment