Hi Bruno!

thank you for the support! I was just about to ask:

"In my original pdf files, individual pages do not have their own xmp 
metadata, there is only one xmp metadata block in each file(the same 
situation as in the test example in your last email). How to simply rip 
off the xmp metadata stream and then add the modified data using 
stamper.setXmpMetadata(alteredMeta.getBytes()) ? "

and then got your second reply. Thank you so much and I'll download the 
update from SVN repository right away! Will let you know whether it 
works for my files.


Best Regards,
Ellen N. Zhao

P.S.: Just bought the book "iText in action" and reading Chapter 18.

Bruno Lowagie schrieb:
> Bruno Lowagie wrote:
>   
>> Ning Zhao wrote:
>>     
>>> Hi!
>>>
>>> thank you very much for the help! Yes, the PdfStamper stamper worked, 
>>> there is really modified xmp metadata in the output pdf file. But the 
>>> problem is, the old xmp metadata still exists. Now there are two 
>>> blocks of xmp metadata in the output pdf file. Now to fix this problem?
>>>       
>> I've made a small standalone example for testing (see attachment)
>> and you are right. I've tried fixing it, but every solution I've
>> found so far could break other functionality
>>     
>
> I decided to upload a new version of PdfStamperImp (the class
> that does all the work for PdfStamper) to the SVN repository.
> It works with the small sample I posted earlier, but it should
> also be tested on other examples (for instance: in your app).
>
> You can download the new version from SVN and build a new jar:
> http://www.1t3xt.com/downloads/svn.php
> Or you can wait for tomorrow's snapshot:
> http://brittanysoftware.com/itext/snapshots/
> Or you could wait for the next release (not scheduled yet).
>
> In any case: thanks for reporting the problem.
> best regards,
> Bruno
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
>   


-- 
HaCon Ingenieurgesellschaft mbH
Lister Str. 15
30163 Hannover
Germany/Deutschland
Tel. +49 511 33699-363
Fax. +49 511 33699-99
Email: [EMAIL PROTECTED]
http://www.hacon.de

Registry Court/Amtsgericht Hannover HRB 1712
Managing Directors/Geschäftsführer: Michael Frankenberg,
Dr.-Ing. Marian Gaidzik, Dr.-Ing. Werner Kretschmer,
Werner Sommerfeld, Dr.-Ing. Volker Sustrate, Peter Talke 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to