At 08:32 AM 4/29/2004, Jason Us wrote:
I am using MoreInfo to set metadata in a PDF.

metadata.put( new String("CreationDate"), dateManipulator.foratDateAcrobat(currentTimeStamp));
metadata.put( new String("ModDate"), dateManipulator.foratDateAcrobat(currentTimeStamp));
pdfStamper.setMoreInfo( this.metaData );


These dates show up fine if I look at the PDF in acrobat reader. However when I look in Acro Pro, the dates displayed
are the original dates from the template I use to create the PDF, via an fdf merge.



Acrobat 6 (Reader and Pro) and later prefer to read information from the XML-based metadata block inside of a PDF, INSTEAD of the simple /Info metadata that you are changing with the metadata & setMoreInfo() methods.


As such, you will need to either modify the XML-based metadata AS WELL or simply remove it from the PDF to avoid the conflict.


Leonard


---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to