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:

1 Like

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

1 Like

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