Aditya Mahajan schrieb am 10.08.2020 um 09:11:
On Mon, 10 Aug 2020, Henri Menke wrote:

On 10/08/20, 01:20, Aditya Mahajan wrote:
Hi,

How do I set pdfminorversion in LTMX. Both \pdfminorversion and \pdfvariable minorversion fail with undefined control sequence.

Does lpdf.setversion(major, minor) work in LMTX?

It does not give an error, but it doesn't change the minor version either.

1. A better solution for this is to add a key to \setupbackend.

2. It doesn't work because when you set the version it's too late because ConTeXt already wrote the PDF header (the relevant code is in lpdf-lmt.lmt).

This is a problem because when you set a PDF format the version entry is ignored in the header (but it's correct in catalogue entry).


%% begin example
\setupbackend[format=PDF/X-1a:2003]

\starttext
Hello TeX.
\stoptext
%% end example

%% begin pdf file (snippet from the example above, compare the version numbers)
%PDF-1.7
%ÃÏÎÔÅØÔÐÄÆ
...
<< /Lang (en) /Metadata 7 0 R /PageLabels << /Nums [ 0 << /S /D /St 1 >> ] >> /PageMode /UseNone /Pages 15 0 R /Type /Catalog /Version /1.4.0 >>
...
%% end pdf file

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to