Minimum METAPOST code produces problematic PDF
The following code: \startMPpage[instance=doublefun] draw (0,0)--(100,0) dashed withdots; \stopMPpage When run through LuaMetaTeX produces a PDF about which Acrobat complains: The dimensions of this page are out-of-range. Page content might be truncated. and Adobe InDesign cannot handle it at all (displays empty). The error message stays with \startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,2) dashed withdots; \stopMPpage but disappears with \startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,3) dashed withdots; \stopMPpage Additionally, on the Adobe forums I have been told: Also, the color space is device gray (not RGB or CMYK) which might be a more generic problem with LMTX output, I don’t know. It might also be an Adobe problem. Previw.app on macOS handles the result without problems. ConTeXt standalone: This is LuaMetaTeX, Version 2.06.02 open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2020.05.12 16:21 MKIV beta fmt: 2020.5.16 int: english/english G
Evince and Okular (Linux) open the PDF output without warnings nor issues. Jairo :) El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda ( gerben.wierda@rna.nl) escribió:
The following code:
\startMPpage[instance=doublefun] draw (0,0)--(100,0) dashed withdots; \stopMPpage
When run through LuaMetaTeX produces a PDF about which Acrobat complains:
The dimensions of this page are out-of-range. Page content might be truncated.
and Adobe InDesign cannot handle it at all (displays empty).
The error message stays with
\startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,2) dashed withdots; \stopMPpage
but disappears with
\startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,3) dashed withdots; \stopMPpage
Additionally, on the Adobe forums I have been told:
Also, the color space is device gray (not RGB or CMYK)
which might be a more generic problem with LMTX output, I don’t know. It might also be an Adobe problem. Previw.app on macOS handles the result without problems.
ConTeXt standalone:
This is LuaMetaTeX, Version 2.06.02 open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2020.05.12 16:21 MKIV beta fmt: 2020.5.16 int: english/english
G
___________________________________________________________________________________ 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
___________________________________________________________________________________
I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. Apparently, Adobe InDesign demands that in a hard way. G
On 8 Jul 2020, at 01:08, Jairo A. del Rio
wrote: Evince and Okular (Linux) open the PDF output without warnings nor issues.
Jairo :)
El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda (gerben.wierda@rna.nl mailto:gerben.wierda@rna.nl) escribió: The following code:
\startMPpage[instance=doublefun] draw (0,0)--(100,0) dashed withdots; \stopMPpage
When run through LuaMetaTeX produces a PDF about which Acrobat complains:
The dimensions of this page are out-of-range. Page content might be truncated.
and Adobe InDesign cannot handle it at all (displays empty).
The error message stays with
\startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,2) dashed withdots; \stopMPpage
but disappears with
\startMPpage[instance=doublefun] draw (0,0)--(100,0)—(100,3) dashed withdots; \stopMPpage
Additionally, on the Adobe forums I have been told:
Also, the color space is device gray (not RGB or CMYK)
which might be a more generic problem with LMTX output, I don’t know. It might also be an Adobe problem. Previw.app on macOS handles the result without problems.
ConTeXt standalone:
This is LuaMetaTeX, Version 2.06.02 open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2020.05.12 16:21 MKIV beta fmt: 2020.5.16 int: english/english
G
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net http://contextgarden.net/ ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 7/8/2020 8:14 PM, Gerben Wierda wrote:
I found out this in the PDF spec:
The minimum page size should be 3 by 3 units in default user space; the
I never noticed that ... what section/paragraph in the spec?
maximum should be 14,400 by 14,400 units.
So we should bump tex's maxima ...
Apparently, Adobe InDesign demands that in a hard way. Or maybe it just cannot handle zero's. The last time I ever ran into an issue was that a scale should not be zero (so we always have 0.00001 at least). But I only have an old acrobat professional so I can't check the latest demands.
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, 8 Jul 2020, Gerben Wierda wrote:
I found out this in the PDF spec:
The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units.
So, does the following work: \startMPpage[instance=doublefun, offset=2pt] draw (0,0)--(100,0) dashed withdots; \stopMPpage Aditya
On 9 Jul 2020, at 08:37, Aditya Mahajan
wrote: On Wed, 8 Jul 2020, Gerben Wierda wrote:
I found out this in the PDF spec:
The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units.
So, does the following work:
\startMPpage[instance=doublefun, offset=2pt] draw (0,0)--(100,0) dashed withdots; \stopMPpage
Yes. G
participants (4)
-
Aditya Mahajan
-
Gerben Wierda
-
Hans Hagen
-
Jairo A. del Rio