|
From: Moses H. <mmh...@no...> - 2004-08-24 22:38:33
|
Hi, Right now there's no way to populate the meta information (e.g. title, creator, author, etc.) on a PDF document generated by org.springframework.web.servlet.view.document.AbstractPdfView. You can't populate it in getDocument(), because the PdfWriter hasn't been associated with the Document yet. And you can't populate it in buildPdfDocument(), because document.open() has already been called. Granted, not many are so anal as to actually want to do this, but for those that are, I submit the attached patch. I couldn't think of any way I could write a sensible unit test for this issue, so I didn't write one. thanks, Moses |