0

I'm using OCGX to generate multiple layers with text and links. All layers are set invisible/hidden (0) by default, except one "main" visible layer. The purpose of this is so when the PDF is opened in some non-layer compatible PDF viewers (such as Apple's Preview), the "main" layer will still show some necessary or essential content. This works fine so far, the issue is that links in hidden layers still "permeate" through. The text is invisible, but the link remains active. Hovering over with the mouse will toggle to the link-pointer and clicking will direct me to the URL. This also means that some non-hyperlinked text from the main layer will appear as if it was linking to something, but it's just the underlying links showing.

Is there a way to completely turn off links in hidden layers as to avoid the above issue? Other than not linking, of course.

I looked at this, but doesn't seem to workout/address the issue I'm raising: OCGX and hyperref: visibility and clickability of overlapping links

Thx

4
  • Which PDF viewers are you testing with? Try with Adobe Reader. – Paul Gaborit Apr 29 '20 at 5:43
  • Adobe Reader and Preview.Adobe Reader works fine, but what I need is for hidden links not to "show" in Preview (I would call them ghost links since they show no text). – Octavio Araujo Apr 29 '20 at 5:56
  • 2
    Preview (from Apple) and many other PDF viewers (like evince in Linux) are not fully or not at all compatible with OCGs. Unfortunately, there is no way around these limits... – Paul Gaborit Apr 29 '20 at 6:01
  • @Paul You could add this as an answer. – AlexG Apr 29 '20 at 6:09
1

Preview (from Apple) and many other PDF viewers (like evince in Linux) are not fully or not at all compatible with OCGs. Unfortunately, there is no way around these limits...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.