From 3d580f1c7fda4966b9fe0da0a815e20b338b4572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 12 May 2025 02:43:50 +0000 Subject: [PATCH] bugfix: hyperlinks now work in pdf/a output --- src/lev-protokoll.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lev-protokoll.mk b/src/lev-protokoll.mk index 44db3e5..6d8a472 100644 --- a/src/lev-protokoll.mk +++ b/src/lev-protokoll.mk @@ -47,6 +47,7 @@ compile_md = pandoc \ --variable colorlinks:true \ --variable csquotes:true \ --variable lang:de-DE \ + --variable hyperrefoptions:pdfa \ --output $(3) GSFLAGS := \ @@ -64,8 +65,7 @@ postprocess_pdf = gs \ -dCompatibilityLevel=1.7 \ -dPDFSETTINGS=/ebook \ -sOutputFile=$(2) \ - $(1) \ - 2>/dev/null + $(1) convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \ $(GSFLAGS) \ @@ -74,8 +74,7 @@ convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \ -dPDFACompatibilityPolicy=1 \ -sOutputFile=$(2) \ /opt/pdfa/PDFA_def.ps \ - $(1) \ - 2>/dev/null + $(1) md2pdf = $(call compile_md,pdf,$(1),-) | $(call postprocess_pdf,-,$(2))