At 07:15 AM 4/27/2006, Petter Nyström wrote:
If I am not to mess with the PRStream but instead make a new PdfStream, my problem revolves around how to set up the new PdfStream in a manner so it has all the properties of the old one. I can copy the PdfDictionary values easily enough,

        Then you have copied all the properties of the old one...


but I also need to make sure it has the same positions etc. within the document.

None of that will change. All you need do is replace the correct named object in the Resources dict and "it just works".


Since the one and only thing I wish to do is really to replace the stream data, the suggested solution seems like a lot more work to me.

Yes, but chances are that you may end up modifying some other values...So do it right..


Leonard

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



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to