11

LuaLatex Version 1.13.2 (TeX Live 2021) prints a warning (pdf inclusion): PDF inclusion: found PDF version '1.7', but at most version '1.5' allowed

How should I generate PDF 1.7 files? Hyperref has an option pdfversion, but the documentation starts with "This is an experimental option."

1 Answer 1

15

hyperref should work, the only problem can be that there can be packages which already open the pdf and then hyperref is too late. Before \documentclass you can set the version like this:

\RequirePackage{expl3}    % \usepackage cannot be used before \documentclass
\ExplSyntaxOn             % Switch on expl3 syntax
\pdf_version_gset:n{1.7}  % Use provided expl3 function
\ExplSyntaxOff            % Switch off expl3 syntax

\documentclass{article}
...

or (requires a current lualatex-dev and is a bit experimental as it loads the new pdfmanagement)

\DocumentMetadata{pdfversion=1.7}
\documentclass{article}
1
  • Could you add a comment behind the first 4 lines, what happens there? Mar 24, 2022 at 18:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .