bugfix: hyperlinks now work in pdf/a output

This commit is contained in:
Jörn-Michael Miehe 2025-05-12 02:43:50 +00:00
parent 8e2291dafa
commit 3d580f1c7f

View file

@ -47,6 +47,7 @@ compile_md = pandoc \
--variable colorlinks:true \ --variable colorlinks:true \
--variable csquotes:true \ --variable csquotes:true \
--variable lang:de-DE \ --variable lang:de-DE \
--variable hyperrefoptions:pdfa \
--output $(3) --output $(3)
GSFLAGS := \ GSFLAGS := \
@ -64,8 +65,7 @@ postprocess_pdf = gs \
-dCompatibilityLevel=1.7 \ -dCompatibilityLevel=1.7 \
-dPDFSETTINGS=/ebook \ -dPDFSETTINGS=/ebook \
-sOutputFile=$(2) \ -sOutputFile=$(2) \
$(1) \ $(1)
2>/dev/null
convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \ convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \
$(GSFLAGS) \ $(GSFLAGS) \
@ -74,8 +74,7 @@ convert_pdfa = /opt/pdfa/bin/gs-919-linux_x86_64 \
-dPDFACompatibilityPolicy=1 \ -dPDFACompatibilityPolicy=1 \
-sOutputFile=$(2) \ -sOutputFile=$(2) \
/opt/pdfa/PDFA_def.ps \ /opt/pdfa/PDFA_def.ps \
$(1) \ $(1)
2>/dev/null
md2pdf = $(call compile_md,pdf,$(1),-) | $(call postprocess_pdf,-,$(2)) md2pdf = $(call compile_md,pdf,$(1),-) | $(call postprocess_pdf,-,$(2))