On 6/9/2025 8:30 PM, juh+ntg-context--- via ntg-context wrote:
Am 05.06.25 um 18:45 schrieb Pablo Rodriguez via ntg-context:
Patch:
--- lpdf-fmt.lmt 2025-06-05 18:35:30.016927969 +0200
+++ mkxl/lpdf-fmt.lmt 2025-06-05 18:36:27.670594638 +0200
@@ -260,6 +260,23 @@
return lower(file.basename(filename))
end
+local function urls(url)
+ if not url or url == "" then
+ return nil
+ else
+ local u = pdfarray()
+ for url in gmatch(url,"([^, ]+)") do
+ if find(url,"^http") then
+ u[#u+1] = pdfdictionary {
+ FS = pdfconstant("URL"),
+ F = pdfstring(url),
+ }
+ end
+ end
+ return u
+ end
+end
+
local function includeprofile(s)
local filename = s.filename or ""
local colorspace = s.colorspace or ""
@@ -313,23 +330,6 @@
return defaultprofiles[channel]
end
-local function urls(url)
- if not url or url == "" then
- return nil
- else
- local u = pdfarray()
- for url in gmatch(url,"([^, ]+)") do
- if find(url,"^http") then
- u[#u+1] = pdfdictionary {
- FS = pdfconstant("URL"),
- F = pdfstring(url),
- }
- end
- end
- return u
- end
-end
-
local function processprofile(s,spec) -- specification
local filename = s.filename or ""
local colorspace = lower(s.colorspace or "")
Thank you very much for the patch. I hope that I applied it correctly.
But, I still get:
backend > profiles > profile specification '{ISO Coated v2 300%
(ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua'
let's see what Pablo comes up with as he's most into these profiles
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
___________________________________________________________________________________