5

For example, in lualatex I can do:

\typeout{pdfmajorversion=2}
\typeout{pdfminorversion=0}

But in latex I found out that I can use \pdfoptionpdfminorversion=0, but \pdfoptionpdfmajorversion=2 does not work for me. Is it really the major version of pdf in latex?

Thanks everybody for the help.

6
  • 4
    Do you mean pdflatex? That engine does not support changing the major version, it is hardcoded to 1. Commented Apr 3, 2019 at 20:23
  • Nice overview of related options for different engines: tex.stackexchange.com/a/202301/36296 Commented Apr 3, 2019 at 20:31
  • @Marcel Krüger Yes,i mean pdflatex. Commented Apr 3, 2019 at 21:43
  • 'We' (LaTeX team) are aware of this, and have started discussions about addressing PDF v2 in various places (its not just pdfTeX). But that will be non-trivial: we will need to test out changes.
    – Joseph Wright
    Commented Apr 3, 2019 at 21:47
  • For anyone else (like me) wondering what's new in PDF 2.0 and not wanting to pay 198 CHF to buy the spec, there's some info from slides 11 to 32 here. IMO for most people there will be no need to change from the versions that have been stable for over a decade; and in any case simply changing the version number without related compliance doesn't make sense, and without viewers it may be hard to test anyway. Commented Apr 3, 2019 at 22:09

1 Answer 1

2

pdfTeX (now) offers \pdfmajorversion as well as \pdfminorversion but a hard-coded major version. (This first appeared in the TL'20 release of pdfTeX.) As such, with a recent release you can mark a PDF as being essentially any version - the reality of course is that this does not mean that the PDF will be valid for PDF 2.0.

1
  • 1
    What is the latest status regarding \pdfmajorversion? What is the latest stable version of PDF that we can specify and use with pdfTeX?
    – Ninja Bug
    Commented May 23, 2022 at 15:37

You must log in to answer this question.

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