On 26/04/2013 19:22, Kevin Day wrote:
> Anyone see any issues with that approach?  (this might be a clever way to
> allow some sort of editing of content streams.... hmmmm).
That's the way to do it.
As explained on SO, one could use OCGRemover as a source of inspiration:
http://stackoverflow.com/questions/16225348/using-itextsharp-to-remove-inline-images-from-pdf
OCGRemover is shipped with iText and can be used to remove specific OCG 
layers.

Note: if the content stream of a page is defined as an array, you need 
to transform the array of separate streams into one single stream first. 
That's a no-brainer, but I mention it anyway before somebody says 
'there's a bug in OCGRemover'.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
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

Reply via email to