Ghostscript 9.25 destroys hyperlinks ?
Gwenaël Jouvin <[email protected]> Sun, 30 Sep 2018 19:37:10 +0200
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I use Ghostscript to shrink PDF documents I create with Latex on a GNU/Linux (Fedora 28) computer.
Following an update of the Ghostscript package, I recently discovered that when compressing my documents with GS, all hyperlinks disappear.
Confirmed in Okular, evince and zathura readers.
I tried to reproduce the issue on a third party PDF generated with MS Publisher 2010: the links are not altered by Ghostscript.
Reverting to 9.23 solves the issue.
The command used is:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Below is an example Latex file to reproduce the issue:
\documentclass{article}
\usepackage{fontspec} % lualatex
%\usepackage[T1]{fontenc} % pdflatex
%\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\begin{document}
\url{http://www.fsf.org}
\href{http://www.gnu.org}{GNU link}
\end{document}
Any clue to avoid this?
Thanks,
Gwenaël