On 17/06/2011 10:39, olexiy wrote:
> This is what i have so far:

I'm sorry, but your code to remove OCG layers is beyond repair:

* you are assuming that the CONTENTS of a page is an Array.
=> that's not always true!!!
* you are assuming that the complete stream consists of one OCG layer.
=> that's not always true!!!
* ...

Your code will remove content that shouldn't be removed.
Your code will keep layers that should be removed.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to