# \pdfmajorversion

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Oct 31 19:01:34 CET 2019

```On 21/10/2019 11:54, Joseph Wright wrote:
> On 20/10/2019 22:03, Joseph Wright wrote:
>> On 20/10/2019 21:34, Joseph Wright wrote:
>>> Hello all,
>>>
>>> I've started looking at PDF-2.0 support for pdfTeX. The attached
>>> introduces \pdfmajorversion for the binary: I need to look at the
>>> manual too.
>>>
>>> At present, this does *not* address PDF inclusion: that requires
>>> minimal changes in the WEB but more significant changes in the C, and
>>> that looks more 'interesting'. I'm sending this first so others can
>>> test, etc.
>>>
>>> Feedback welcome.
>>>
>>> Joseph
>>
>> I'm working slowly on other stuff:
>>
>> https://github.com/josephwright/texlive-source/tree/PDF-2.0
>>
>> Joseph
>
> Updated version of the patch is attached. This should cover all of the
> key points:
>
> - PDF major version is allowed from 1 upward
> - Minor fixes compared with previous patch
> - Image inclusion checks \pdfmajorversion
>
> Some of the error messages were a bit long if I said both
> \pdfmajorversion and \pdfminorversion, hence the re-phrasing.
>
> Testing to date has been (a) does it build (Ubuntu as WSL, Travis-CI)
> and (b) does a very simple LaTeX document work. I'm pretty confident
> that setting "%PDF-2.0" is fine, but the image inclusion part may be
> more tricky. (In particular, I'm not sure whether the build set up uses
> the Poppler branch for PDF data retrieval.)
>
> Joseph

Does the patch look OK ... I've heard no comment, and the LaTeX team