On 6/4/2025 5:14 PM, Pablo Rodriguez via ntg-context wrote:
On 6/4/25 08:36, juh+ntg-context--- via ntg-context wrote:
[...]
Any hints how to match it again?

Sorry, Jan-Ulrich, it isn’t clear to me what is going on here.

The following sample:

   \setupbackend
     [format=PDF/X-3:2002,
      intent={ISO Coated v2 (ECI)}]
   \starttext
    \null
   \stoptext

gives me the following error:

   lpdf-fmt.lmt:282: attempt to call a nil value (global 'urls')

Line 189 from the same file reads:

   -- When we have an URL we can assume that embedding is not needed.

Line 8 from colorprofiles.xml also reads (as a comment):

     When the id is "Custom" we assume that embedding is needed.

(Also related to line 391 from lpdf-fmt.lmt.)

As far as I understand, color profiles with urls aren’t being embedded
in the PDF document.

For reasons totally unknown to me, lpdf-fmt.lmt has also problems with
profiles from http://www.color.org.

what problem

I’m afraid I cannot help here,

You can move:

local function urls(url)
   ...
end

to before:

local function includeprofile(s)

to get rid of the error.

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to