TLDR fix: add `-dPrinted=false`

"This was a bug fix, the behaviour previously was incorrect, now it is
as intended. The Annotations in your PDF file have no /Flags entry, in
the absence of that, the default value (0) is used.

This means that bit 3 of the Flags value is 0, from the PDF Reference:

3
Print
(PDF 1.2) If set, print the annotation when the page is printed. If clear, 
never print the annotation, regardless of whether it is displayed on the 
screen. This can be useful, for example, for annotations representing 
interactive pushbuttons, which would serve no meaningful purpose on the printed 
page. (See implementation note 83 in Appendix H.)

The default behaviour of the Ghostscript PDF interpreter is to be a
printer. Since these annotations do not have any effect on a printer,
they are dropped.

If you add to the command line -dPrinted=false then the PDF interpreter behaves 
as a display device instead. Because these annotations don't have NoView set, 
the PDF interpreter will process them, which means they will end up in the PDF 
file, when using pdffwrite."
from
https://bugs.ghostscript.com/show_bug.cgi?id=699830 (Hyperlinks broken after 
conversion)

& several "duplicate" reports
https://bugs.ghostscript.com/show_bug.cgi?id=699896 (PDF Anchor Links no longer 
working since version 25)
https://bugs.ghostscript.com/show_bug.cgi?id=700048 (Clickable links lost when 
converting to pdf)
...

** Bug watch added: Ghostscript (AFPL) Bugzilla #699830
   http://bugs.ghostscript.com/show_bug.cgi?id=699830

** Bug watch added: Ghostscript (AFPL) Bugzilla #699896
   http://bugs.ghostscript.com/show_bug.cgi?id=699896

** Bug watch added: Ghostscript (AFPL) Bugzilla #700048
   http://bugs.ghostscript.com/show_bug.cgi?id=700048

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1806865

Title:
  Ghostscript removes links (regression from gs  9.18)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1806865/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to