[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
no links in PDFs with gs 9.56.1 (update)
From: |
Werner LEMBERG |
Subject: |
no links in PDFs with gs 9.56.1 (update) |
Date: |
Wed, 21 Sep 2022 15:56:29 +0000 (UTC) |
In the end of July I wrote:
> Two days ago I've updated my openSUSE box, which now comes with gs
> 9.56.1 – previously, I had gs 9.54.0. This new gs version uses a
> brand-new PDF engine written in C, replacing the old one written in
> PostScript.
>
> Building the LilyPond documentation I wondered why the new output
> file size of `notation.pdf` is only 75% of the old size. After some
> checks I found out that all links are gone.
>
> So, a heads-up: gs 9.56.0 and 9.56.1 are buggy! According to
>
> https://bugs.ghostscript.com/show_bug.cgi?id=705565
>
> this has been fixed meanwhile, but I have no idea when 9.56.2 gets
> released.
Very bad news: with gs 10.00.0 (released today) the abovementioned
problem is *not* fixed – there are still no links in the PDF.
Additionally, a build with `extractpdfmark` increases the size of
`notation.pdf` from 6.4MByte to 25.9MByte! According to `pdffonts`,
the number of embedded fonts increases from 78 to 4400.
> In case you are forced to use 9.56.1, add `-dNEWPDF=false` to the gs
> command line options (in file `Documentation/GNUmakefile`) to make
> gs use the old PDF engine, which produces good results.
This is still true; for testing, I've attached the corresponding
patch.
Right now I don't have the stamina to further analyze this issue.
Please verify my observations! If I'm right it would be urgently
necessary to prepare bug reports for the ghostscript people – they
want to remove the old PDF engine in a few months...
Werner
diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile
index 7000a2a00d..f3ee66144a 100644
--- a/Documentation/GNUmakefile
+++ b/Documentation/GNUmakefile
@@ -266,6 +266,7 @@ ifeq ($(USE_EXTRACTPDFMARK),yes)
-sDEVICE=pdfwrite \
-dAutoRotatePages=/None \
-dPrinted=false \
+ -dNEWPDF=false \
-dColorConversionStrategy=/LeaveColorUnchanged \
-dDownsampleMonoImages=false \
-dDownsampleGrayImages=false \
@@ -836,6 +837,7 @@ $(outdir)/%.png: %.eps
mkdir -p $(dir $@)
gs -dAutoRotatePages=/None \
-dPrinted=false \
+ -dNEWPDF=false \
-dTextAlphaBits=4 \
-dGraphicsAlphaBits=4 \
-q \
@@ -851,6 +853,7 @@ $(outdir)/%.pdf: %.eps
mkdir -p $(dir $@)
gs -dAutoRotatePages=/None \
-dPrinted=false \
+ -dNEWPDF=false \
-q \
-sDEVICE=pdfwrite \
-dNOPAUSE \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- no links in PDFs with gs 9.56.1 (update),
Werner LEMBERG <=