It can be done with the SVN version. Use the fileParameter in 
PdfFileSpecification to set the creation and modification date. You can also 
set the mime type.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Karnok Dávid
> Sent: Tuesday, June 19, 2007 4:09 PM
> To: [email protected]
> Subject: [iText-questions] Specifying file attachment last 
> modification date
> 
> 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)
> 
> --------------------------------
> 
> Karnok Dávid
> 
> PhD Student
> 
>  
> 
> Engineering Management and Intelligence laboratory, Computer 
> and Automation Research Institute, Hungarian Academy of Sciences
> 
> http://www.sztaki.hu
> 
> http://www.emi.sztaki.hu 
> 
>  
> 
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to