[NTG-pdftex] \pdfoptionpdfminorversion

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Feb 21 15:09:17 CET 2005


On Mon, Feb 21, 2005 at 02:29:24AM +0100, Reinhard Kotucha wrote:

> Hi,
> I'm wondering whether pdftex complains if I set the variable
> \pdfoptionpdfminorversion to a very low value and use PDF features
> which had been introduced in more recent versions of Acrobat.
> 
> Does pdftex complain in this case?

User code (in dictionaries, streams, ...) is not interpreted
by pdfTeX and is not checked against the different PDF
specifications. Thus the user have to take care. Or
\pdfoptionpdfminorversion should be set to low values
by experts only.

But perhaps at least code by pdfTeX itself could be checked.
Consider this example:

\pdfoptionpdfminorversion=0
\pdfdest name {foobar} Fit
\null
\nopagenumbers
\bye

Now the pdf file contains a named destination using a string
This is a feature of PDF 1.2. The pdf file, however,
is marked as "%PDF-1.0".

This could be solved by an internal variable that records the
maximum version of used PDF features. Then conflicts with
\pdfoptionpdfminorversion can be detected and an error or
warning can be raised.
  Also this can be extended by a new primitive, thus that
packages such as hyperref also can mark its code with
its maximum version number of used PDF features.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 


More information about the ntg-pdftex mailing list