'Issue with Selectable text on a hidden layer of a PDF
I have a product that has several layers that contain different textual information. The PDF uses layer visiblity to only show specific layers er at a time, but regardless of what layer you're looking at, you can select the text on the hidden layers. This causes all sorts of problems as the text layers overlap.
Simple example:
Imagine that you create a PDF file in Indesign or Illustrator.
Create a layer, put some text on it. Duplicate the layer. Then in Acrobat, create 2 buttons that respectively change the layer visibility, so that only one of these layers is shown depending on which button you press.
Now, when you open the PDF file and 'select all text', you'll notice that both Acrobat, and Edge will select the text on the visible layer AND the text on the hidden layer. You can do a CTRL+F find all, and find words that are on your hidden layers.
Is there a way I can limit users to only be able to select the text of the visible layer of the PDF? I have a feeling it might involve JS or template pages, but I'm not sure.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
