Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the PDF version doesn't remove the warning #1193

Open
Ectalite opened this issue May 14, 2024 Discussed in #1192 · 3 comments
Open

Changing the PDF version doesn't remove the warning #1193

Ectalite opened this issue May 14, 2024 Discussed in #1192 · 3 comments

Comments

@Ectalite
Copy link

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 #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
Copy link
Author

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

@gerdelma
Copy link

gerdelma commented Sep 20, 2024

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

@vlasakm
Copy link
Contributor

vlasakm commented Sep 20, 2024

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

I explain why this happens in the linked discussion: #1192 (reply in thread).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants