Is it possible to update just the metadata without having to re-write the contents of the file ? Are there any APIs that will allow me to do this ?
My application has to deal with huge files and reading/writing the file seems a very costly process. Kishore -----Original Message----- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 2:39 PM To: Kishore Subramanian; 'Leonard Rosenthol'; '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: [iText-questions] Modifying Metadata One reason things might look different: in my recent experiments with modifying metadata, I modified not only the XMP metadata, but for good measure I also modified the info dictionary. I noticed in doing this that although the info dictionary was stored near the end of the file in the source PDF, it was stored near the beginning of the PDF created by the PdfStamper. -Matt --- Kishore Subramanian <[EMAIL PROTECTED]> wrote: > > > [ > New data was added and other objects and things were > > incorporated. It shouldn't be a big difference in > size... > ] > > > Actually I noticed that the contents of the file has > been modified. When I open the generated file in > Notepad, I can see some ascii values (the > original file has non-printable binary characters .. > which is expected). > > [ > >2) Is it possible to write/change the metadata on > the same file > >without having to save it as another file ? > > Not with iText, but there are many utilities that > can be used > to do modify PDF metadata in place. > ] > > Are you saying that iText cannot modify just the > MetaData without modifying the Contents. Can you > point me to any such APIs that can do this ? > > Thanks in advance. > Kishore > > > > -----Original Message----- > From: Leonard Rosenthol > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 1:50 PM > To: Kishore Subramanian; > '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: RE: [iText-questions] Modifying Metadata > > > At 1:39 PM -0800 3/19/03, Kishore Subramanian wrote: > >1) Is it possible to write/change the Metadata > without affecting the > >contents of the original PDF file ? > > Yes, that is what you should be doing... > > > >I found that after writing the metadata with > >the sample code, the file size is now different. Is > it related to > >some encoding scheme on the writer ? > > New data was added and other objects and things > were > incorporated. It shouldn't be a big difference in > size... > > > >2) Is it possible to write/change the metadata on > the same file > >without having to save it as another file ? > > Not with iText, but there are many utilities that > can be used > to do modify PDF metadata in place. > > > Leonard > -- > --------------------------------------------------------------------------- > Leonard Rosenthol > <mailto:[EMAIL PROTECTED]> > Chief Technical Officer > <http://www.pdfsages.com> > PDF Sages, Inc. > 215-629-3700 (voice) > > 215-629-0789 (fax) > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code > think in ink? > You could win a Tablet PC. Get a free Tablet PC hat > just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions