Hi,
I’m using iText 2.0.4 PdfWriter with default settings
to attach a file to the generated pdf:
PdfAnnotation formatXSD = PdfAnnotation.createFileAttachment(
writer,
new Rectangle(doc.right()-cm(1), doc.top()-cm(1),
doc.right()-cm(1)-10, doc.top()-cm(1) -10),
"XML Schema definition",
null, "doc/format.xsd", "format.xsd");
formatXSD.put(PdfName.MODDATE, new PdfDate(new GregorianCalendar()));
formatXSD.put(PdfName.NAME, new PdfString("Paperclip"));
However when I open the resulting PDF in Adobe Reader 7, the
file attachment’s last modification date is undefined. How can I specify
this parameter?
(Sorry if this is a duplicate question)
--------------------------------
PhD Student
Engineering Management and Intelligence laboratory, Computer
and Automation Research Institute, Hungarian Academy of Sciences