• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Interactive PDF - Buttons from InDesign have visible black outline in PDF

New Here ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

My InDesign file has a map with buttons on 3 countries (with show/hide actions) —AUS, US, Brazil. When exported to Acrobat, the buttons have a visible black box that shows up where the "box" of the button is. How do I remove that? Any help is appreciated! Thank you!  

TOPICS
How to , PDF forms

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

In Acrobat & Reader you can go to Preferences> Forms> Show focus rectangle (un-check), this will turn off the box for you, but not other people who view the PDF. I don't know if there is a work-around for this, although I believe buttons set to mouse enter and mouse exit do not create a black box (no clicking).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Thank you, that worked for me but I woud need the viewers to see no box too. I'll try no click as an option as well. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

I don't see any such box. Can you send a screenshot of what you're seeing?

Also, what version of Acrobat are you using?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

PS. The show/hide actions you associated with the fields are very clumsy and barely working. I suggest you use a script to do it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Box on US.pngMy acrobat is the most recent for 2020

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

Thank you. I'd have to figure out what you mean by using a script, I am not familiar. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2021 Sep 15, 2021

Copy link to clipboard

Copied

Heya, Did you figure this out?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2021 Sep 16, 2021

Copy link to clipboard

Copied

Use this JavaScript as a "Document level" script, so it will run at document opening:

app.focusRect = false;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2021 Sep 16, 2021

Copy link to clipboard

Copied

Just be aware it will affect all other files you open, not just the ones you create in InDesign...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 28, 2022 Aug 28, 2022

Copy link to clipboard

Copied

First ID PDF and these borders are obnoxious. I don't see anything on line about adding a "Document level" script. Where do I put this code please? Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 05, 2022 Jul 05, 2022

Copy link to clipboard

Copied

Hi @Patti_NJ  have you managed to solve this issue?

 

I am experiencing the exact same issue: when exporting my Indesign document as interactive PDF, it works perfectly in Preview (Mac), but when opened in Acrobat I get those same visible black dotted outlines/bounding box borders on my file. I need these borders to not be visible when random reader/viewers open the PDF on their computers (as I have no idea what pdf viewer they have installed, or if they have Mac (Preview) or Windows/Acrobat etc).

 

Any help would be much appreciated! I am using Indesign 2022, and Acrobat Pro DC 2022 version.

 

Screenshot:

Karlien5FAB_0-1657040769036.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2022 Jul 06, 2022

Copy link to clipboard

Copied

Please read my answer above

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 13, 2022 Sep 13, 2022

Copy link to clipboard

Copied

@JR Boulay your line of code worked on my Acrobat file, but others are still seeing the box. Any way to remove that line for other viewers?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 13, 2022 Sep 13, 2022

Copy link to clipboard

Copied

See Luke Jennings3 answer above.

 

Capture_636.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 13, 2022 Sep 13, 2022

Copy link to clipboard

Copied

Thanks for the quick reply...but that's my problem. It's going to clients, where I have no control over their preference setup...so if there is a way to have the default setting within the file be "off" that would be ideal 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

Please read my answer above

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 18, 2022 Sep 18, 2022

Copy link to clipboard

Copied

Below is a workable solution. Apologies to JR Boulay if this solution was clear in the above answers...it wasn't to me. The key is to apply the javascript code to the actual button. Steps:

 

1. Open pdf

2. Search “tools” and find “Select object”

3. Click select object (this will highlight all your buttons)

4. Right click on the button you'd like to program and select properties

5. Then go to actions tab

6. Select on focus for the trigger

7. Select run javascript for the action

8. Then click add

9. Type app.focusRect = false into the box.. This deactivates the focus rectangle.
   (To active the focus rectangle back use app.focusRect = true)

10. Then click ok.

11. Close and save the pdf.

12. Reopen the pdf and go and click the button you added the javascript to.

13. Now check your pdf preferences, the show focus rectangle should be turned off.

 

I'll try to record a youtube video to show these steps. and add to this post. Thanks all!

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

Sorry for the too terse answer but don't do that, unless you really want it to be a user choice (vs document behavior).

This script must be placed in "Document JavaScripts", name it "init" or whatever you want.

Then the script will run at each document opening (and each click on the "Close" button).

 

Capture_903.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 19, 2022 Sep 19, 2022

Copy link to clipboard

Copied

LATEST

No apologies necessary...for all readers, please ignore my post and follow JR Boulay's above. And please forgive my newb-ness. 🙂 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines