Figma Support Forum

Bug: Exporting to PDF adds a random box around my links

There was a bug documented back in July that is still live. Every time I export a PDF, my links get this weird black box added around them.

Old bug report: https://spectrum.chat/figma/general/pdf-links-with-ugly-borders-how-to-remove-them~46de5a36-2288-48ac-81c1-4dacc1b01f15

How it looks in Figma:

How it exports to Adobe Acrobat:

2 Likes

This happens to me too. Has it been solved?

Note that this is only a problem in Acrobat. If you open this doc in the browser (Chrome, Edge, etc.), you won’t see these outlines. There are a couple of ways to solve this:

1.

While you have the PDF open, click edit PDF, then select link → Add/Edit Web or Doc Link. Double click the link that has a box around it and change the link type from “visible rectangle” to “invisible rectangle.” (Sources: Reddit and Musli)

2.

I haven’t tried this but the TinyImage plugin might be able to solve this as well if you compress a PDF with it.

3.

Finally, Niklas Higi on Twitter shared a way to do this programmatically.

  • Open the PDF file in a text editor
  • Replace “/Link” with “/Link /Border [0, 0, 0]” everywhere
  • Save the file

If you’re comfortable with the terminal, you can also run the following command to accomplish the same thing:

sed 's|/Link|/Link /Border [0, 0, 0]|' original.pdf > fixed.pdf

3 Likes

None of two free solutions work. Any other ideas (except buying Acrobat)?

You can try some online PDF editors and/or compressors.

Hello Gleb. Could you please expand on the terminal solution, at least 3 easy step what needs to be done. Thanks a lot!

The full command is listed there, you just need to replace input and output pdf with paths to your specific PDF and to where exactly you want to save it if not in the current folder.

1 Like

Thank you!!! Got it)

Hi hi, very new to terminal!
but i keep getting response : No such file or directory. I have changed the input and output names of the pdf in my command to match what the file name is and the new file name. How do i specify the paths to the file?
this is what I popped into the terminal :
sed ‘s|/Link| /Link /Border[0 ,0 ,0 ]|’ ash.pdf > terminalfix.pdf

@Gleb - Thanks so much for your solution with screenshots using Adobe Pro DC (the paid version of Adobe Reader). I easily removed the boxes around my links!
***Anyone who doesn’t have the paid Adobe Pro (just the free Adobe Reader), I was able to sign up for an Adobe Pro 7-day free trial so that I could make these .pdf edits (and then cancelled the trial before being billed).

1 Like

OMG I got it to work. Ok so here is what I did. (I am on a Mac btw)

  1. I downloaded the pdf and it saved do my downloads folder
  2. CD into the downloads directory (folder) in terminal
  3. Since the pdf is in the downloads folder I just ran the cmd
  • sed ‘s|/Link|/Link /Border [0 0 0]|’ Resume.pdf > fixed.pdf

Niklas cmd did not work for me because the [0 0 0] had camas in it*

1 Like

@Mitchell_Malinin great callout about the commas. By removing commas the same process works in TextEdit allowing anyone with fear of Terminal to make the same global change to their PDF’s

1 Like

I have the same issue… Removing the outlines in adobe works, but I usually work with documents that have about 50 links…

Isn’t there a way or some kind of setting in figma that prevents this from happening?