Add \DocumentMetadata for PDF 2.0 / PDF/UA-2, load tagpdf with activate-all, extend hypersetup with pdftitle/pdfauthor/pdflang/ pdfdisplaydoctitle, and add alt text to the letterhead and signature images. Drop xetex-only xltxtra and switch the Makefile from xelatex to lualatex. Verified compliant with verapdf's PDF/UA-2 profile. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
610 B
Makefile
28 lines
610 B
Makefile
#!/usr/bin/make
|
|
|
|
ENC_SIGIMAGE = figures/signature.pdf.gpg
|
|
DEC_SIGIMAGE = figures/signature.pdf
|
|
|
|
# to use encrypted signatures files, add "figures/signature.pdf" (no
|
|
# quotes) right before the first $( in the following line:
|
|
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
|
|
|
figures/signature.pdf:
|
|
gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE)
|
|
|
|
%.pdf: %.tex
|
|
latexmk -f -lualatex $<
|
|
|
|
clean:
|
|
latexmk -C *.tex
|
|
$(RM) -f *.tmp *.run.xml
|
|
# to use encrypted signature files, uncomment the following line
|
|
# $(RM) -f $(DEC_SIGIMAGE)
|
|
|
|
viewpdf: all
|
|
evince *.pdf
|
|
|
|
pdf: all
|
|
|
|
.PHONY: clean all update-sig
|