3

I am using iText7. There are several source pdfs with a lot of layers. Some of them are hidden. I would like to create one result pdf where source pdfs go one by one. I use the following method to copy pages to result pdf:

sourcePdfDocument.CopyPagesTo(pageFrom, pageTo, destinationPdfDocument);

As a result of copying all hidden layers are visible (this is likely because OCProperties are missing in result pdf). But I would expect hidden layers are not visible in result pdf. I found question (perhaps obsoleted one) related to such functionality here. However don't see the way how we can remove OCG-related information from the catalog.

Could you please help with that? Is there in iText7 any ability to remove certain layer? Any ideas?

Ronald
  • 41
  • 3

0 Answers0