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))