I am trying to ignore/discard the hidden layers of a PDF when merging the document.
When I use ImportedPageData(Filename, Page) it is Merging the hidden layers into the active layer.
Is there a way to call ImportedPageData(Filename, Page) and have it discard not merge the hidden information?
Or baring that is there a way to use MergeDocument(), to retain only the active layer.
MergeDocument(Filename,MergeOptions.None) flattens (removes the layers) the document, however it also merges the hidden layers into the visible layer.
Discarding (not merging) hidden layers
Re: Discarding (not merging) hidden layers
Support · Jan 26, 2017When referring to a particular "hidden layer" or "active layer" or "visible layer" it would be easiest for you to send over the PDF that you are working with (and point out the exact content that you want to keep and what content you want to be stripped away). Please email this over to support@cete.com and we can go from there.
Thanks,
ceTe Software Support Team
Re: Discarding (not merging) hidden layers
Support · Jan 30, 2017Hello,
Thanks for sending the requested information. We did testing on our end and currently it is not possible to import/merge the contents of the PDF by preserving the specific layers in the PDF. As of now the DynamicPDF API will flatten all the layers and imports the contents and it not possible to hide/remove some layers and import the contents.
We will add this feature to our wish list and we may include this (merging selective layer/ removing the specific layer) in future version of DynamicPDF API. Please note that currently we do not have any exact time line on it.
Thanks,
ceTe Software Support Team.