ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to set pdfminorversion in LMTX?
Date: Mon, 10 Aug 2020 22:40:41 +0200	[thread overview]
Message-ID: <37392305-9953-8e64-931b-9f7dcecccc61@gmail.com> (raw)
In-Reply-To: <nycvar.YAK.7.78.908.2008100310550.1544@nqv-guvaxcnq>

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	other threads:[~2020-08-10 20:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10  5:20 Aditya Mahajan
2020-08-10  6:52 ` Henri Menke
2020-08-10  7:11   ` Aditya Mahajan
2020-08-10 20:40     ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37392305-9953-8e64-931b-9f7dcecccc61@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).