tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Changing the PDF version doesn't remove the warning

Open Ectalite opened this issue 1 year ago • 3 comments

Even if the PDF version is superior or equal to the included PDF, the warning is still showing up.

Please see the messages describing the issue in the discussion down here:

Discussed in https://github.com/tectonic-typesetting/tectonic/discussions/1192

Originally posted by Ectalite May 14, 2024 I'm including a PDF page inside my Tex project and since that I'm getting the warning: warning: Trying to include PDF file with version (1.7), which is newer than current output PDF setting (1.5).

After a couple of researches, you can give a parameter when calling xelatex to change the PDF version. xelatex -output-driver="xdvipdfmx -V 5" <yourfile>

Is there a way to do this tectonic ?

I also tried to change dvipdfmx.cfg in my texlive installation, but it didn't have any impact.

Ectalite avatar May 14 '24 19:05 Ectalite

For the reference here is a minimal working example including 4 known method to change the PDF version. It also includes a PDF exported from a Word (Office 365) document with the PDF-A option. MinimalWorkingExample

Tectonic version: 0.15.0

Ectalite avatar May 15 '24 07:05 Ectalite

@Ectalite Hi I've run into the same issue and can confirm it - Including a pdf into a pdf file causes this warning, even if the version is properly set.

By starting your document with:

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{pdfversion=1.7}
...
\usepackage{graphicx}
\newcommand{\logo}{\includegraphics[width=2cm]{media/logo.pdf}}
...

You can control the pdf version that is written to file:

head -c 9 WithVersion.pdf => %PDF-1.7 head -c 9 WithoutVersion.pdf => %PDF-1.5

But even so the version warning pops up: warning: Trying to include PDF file with version (1.7), which is newer than current output PDF setting (1.5).

gerdelma avatar Sep 20 '24 10:09 gerdelma

@gerdelma As you say, the warning is wrong, the document is correct.

I explain why this happens in the linked discussion: https://github.com/tectonic-typesetting/tectonic/discussions/1192#discussioncomment-9463365.

vlasakm avatar Sep 20 '24 19:09 vlasakm