1

I searched in several forums and iText documentation like the Examples but I can't find out how to remove PDF Layers (OCG) using iText7.

I saw there is a class OCGRemover of the "xtra" library of iText5 but didn't find that class for iText7.

Any help? Thanks

mbanchero
  • 134
  • 1
  • 10

1 Answers1

2

That class hasn't made it to iText 7 just yet. It's on the backlog so it should be implemented, but I can't make any promises on when we'll deliver this functionality.

Michaël Demey
  • 1,567
  • 10
  • 18
  • Also, this is probably something that should be part of the PdfSweep add-on, not of the core library. – Bruno Lowagie Sep 07 '17 at 14:52
  • Actually I would propose making it a mere example of a more generic content stream editor, just like [here](https://stackoverflow.com/a/35915789/1729265) a somewhat generic `PdfContentStreamEditor` for iText 5 is used as base for the `TransparentGraphicsRemover` the OP was after. – mkl Sep 07 '17 at 16:08