On 5/2/13 9:15 AM, "mkl" <m...@wir-sind-cool.org> wrote: >If on the other hand you only want to redact specific types of contents >(e.g. immediate text content in the page content stream), that task is >feasible, especially when having the low level functionality of a library >like iText at hand. >
You can't work on just the content stream level, even with just text. Why? Because you need to ensure that nothing else moves when you remove something. And sometimes the positioning operators are relative to the current pen AFTER drawing, for example consider: 1 0 0 1 100 100 Tm (See) Tj 50 0 Td (Jane) Tj 25 100 Td (run) Tj And you want to remove "Jane" - you can't just remove that one line - since now "run" will be in a different place on the page. And you can't know how to adjust the positioning of "run" without being able to load fonts, measure text, etc. iText has a lot of great stuff in there - but not all of it is necessarily exposed as needed for this task. Leonard ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php