You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/11/22 11:02:25 UTC
DO NOT REPLY [Bug 37589] New: -
iText, Bookmarks and Document Info
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37589>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37589
Summary: iText, Bookmarks and Document Info
Product: Fop
Version: 0.20.5
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: documentation
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: js@ddre.dk
On the website, it is stated that iText swallows bookmarks. If you instead of
using PDFWriter, uses PDFStamper then itext does not swallow bookmarks.
The PDFInfo class mentioned her is the one enclosed in FOP, but with creatation
date predefined and an number of other methods defined to set the different
parameters.
PDFInfo info = new PDFInfo();
PdfReader reader = new PdfReader(fi);
info.setTitle(title);
info.setSubject("A subject");
info.setCreator("A Creator " + ver);
info.setAuthor("This Working Group");
PdfStamper stamp = new PdfStamper(reader, new FileOutputStream(fo));
stamp.setMoreInfo(info.toMap());
stamp.close();
BTW. How come you have not created a fop extension for the document properties.
Eg.you should enable elements such as fox:author, fox:title etc.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.