Dear Bruno, I am sorry for my late reply. Thank you very much for this pointer. It is indeed exactly what I was looking for.
I greatly enjoyed working with iText and would like to take this opportunity to thank you and all other developers who work on this wonderful product. Tony. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:itext- > [EMAIL PROTECTED] On Behalf Of Bruno Lowagie > Sent: Monday, June 23, 2008 6:33 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] image reference for a special > application > > Bruno Lowagie wrote: > > Leonard Rosenthol wrote: > >> The only other option that I can think of - which is a bit more work > >> up front, but faster at match time, would be to use some unique ID > >> from the database and store that as a custom key in the image's > >> dictionary. Then you can grab that back out during the loop over > >> images and compare that. > > > > That was also what I was thinking, but we'd need to apply > > some changes to iText to achieve this. I didn't answer > > because I'm still thinking about the best way to achieve > > this, if we were to provide this functionality. > > Allow me to correct myself: no changes to iText are needed. > Have a look at: http://1t3xt.info/examples/browse/?page=example&id=393 > (I wrote this based on the initial special request). > I you open the resulting PDF in a plain editor, you will notice > that there's an extra key value pair in the Image Stream: > /MySpecialId/123456789 > > As Leonard suggests, you could 'invent' a custom key (I used > MySpecialId) and use it to store a unique ID (I used 123456789). > That will allow you to know exactly which image is in the stream. > > best regards, > Bruno ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
