Thanks a lot,
 
   PRStream obj_PRstream = (PRStream)obj_element_dic;
   obj_PRstream.setData(obj_bytes_value);
 
It works fine!
 
I tried the inverse way to read a PDF stream content and I found that with
    PdfReader.getStreamBytesRaw(obj_PRStream_element);
Filter is NOT applied, and with 
    PdfReader.getStreamBytes(obj_PRStream_element);
Filter is applied
 
That's great!
 
Thanks again!
> Date: Wed, 7 Nov 2007 12:15:24 +0100> From: [EMAIL PROTECTED]> To: 
> [email protected]> Subject: Re: [iText-questions] 
> Replacing PDF stream content> > Ismael F wrote:> > It's possible to make a 
> direct replacement of stream bytes without > > changing references?> > Yes, 
> you get the PRStream object from the PdfReader,> and the use the setData 
> method to change the stream.> As PdfStream extends PdfDictionary, you can 
> also add> keys to the stream dictionary (or change them).> > This is all done 
> in PdfReader. If you use this reader> object in PdfStamper or PdfCopy, you'll 
> see that the> object is changed.> br,> Bruno> > 
> -------------------------------------------------------------------------> 
> This SF.net email is sponsored by: Splunk Inc.> Still grepping through log 
> files to find problems? Stop.> Now Search log events and configuration files 
> using AJAX and a browser.> Download your FREE copy of Splunk now >> 
> http://get.splunk.com/> _______________________________________________> 
> 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/
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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