This question already has an answer here:

I'm using Lubuntu in my laptop and I have an e-book reader. (Sony Reader PRS-T2)

However, my e-book reader struggles to open several pdf files with links in it, such as webpage I saved using Google's chrome build-in print-to-pdf tool.

Is there any software (CLI or GUI) that can remove those links from my PDF files?

I have have tried "flattening" function from PDF Chain and PDFTK but they do not work.

P.S. I have tried the solution in Open Source Command Line Tools to Remove Hyperlinks in PDFs? but for some reason it doesn't work.

marked as duplicate by Avinash Raj, falconer, karel, mikewhatever, Eric Carvalho Jan 31 '14 at 11:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You should ask a new question about why it doesn't work. – Braiam Jan 31 '14 at 15:46

I've found a way of doing it; I don't think it's intended behaviour exactly, but it works by virtue of pdfjam not preserving links in the output (listed as a known issue in its man page, but somewhat helpful for your particular situation).

It uses the pdfjam package, so run sudo apt-get install pdfjam first. Then simply navigate to the folder containing the pdf file (take as example foo.pdf), and run pdfjam foo.pdf . It should process it and output as foo-pdfjam.pdf, and any hyperlinks should be gone from the output file.

  • My Terminal show pdfjam: This is pdfjam version 2.08. pdfjam: Reading any site-wide or user-specific defaults... (none found) pdfjam ERROR: can't find pdflatex! What should I do? – siravac Jan 31 '14 at 13:08
  • @siravac: Ah, sorry, PDFJam requires pdftex to be installed before it can run. This is included in the package texlive-base. Run sudo apt-get install texlive-base and then try again. – Jez W Jan 31 '14 at 13:42
  • You might also need texlive-latex-recommended, for the pdfpages program (pdfjam works as a frontend for pdfpages). – Jez W Jan 31 '14 at 13:44

Depending on your pdf reader there might be a "remove links" button under document processes or something similar. You'll have to forgive me I have not used your specific reader before.

Hope this helps

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