setmemstream to use pdfe.new instead of epdf.openMemStream
Hi, I am using the "figures.setmemstream" for inline images and it is broken now with the latest luatex on the changes from epdf.openMemStream to pdfe.new. Although it does say "very experimental and likely to change", but can we update the call from epdf.openMemStream? Minimal example: \starttext \startluacode figures.setmemstream("inline",mime.unb64("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=")) context.externalfigure({"memstream:///inline"}) \stopluacode \stoptext or as in grph-mem.lua: -- \startluacode -- figures.setmemstream("whatever",io.loaddata("t:/sources/cow.pdf")) -- \stopluacode -- -- \externalfigure[memstream:///t:/sources/cow.pdf] -- \externalfigure[memstream:///whatever] The error message is: /usr/share/texmf/tex/context/base/mkiv/grph-mem.lua:32: attempt to index global 'epdf' (a nil value) stack traceback: /usr/share/texmf/tex/context/base/mkiv/grph-mem.lua:32: in function 'setmemstream' [ctxlua]:2: in main chunk Which points to the line of "local memstream, identifier = epdf.openMemStream(stream,#stream,name)" LuaTeX commit 6822 change was "epdf.new (aka memstreams) (HH)" ConTeXt ver: 2018.06.23 12:12 MKIV beta fmt: 2018.6.23 int: english/english luatex version 1.09 with functionality level 6823, Thanks, Adam
On 6/23/2018 11:55 PM, Adam Reviczky wrote:
Hi,
I am using the "figures.setmemstream" for inline images and it is broken now with the latest luatex on the changes from epdf.openMemStream to pdfe.new.
Although it does say "very experimental and likely to change", but can we update the call from epdf.openMemStream?
memstreams work but not with that context call yet .. i'lll look at it but as said, running 1.09 will trigger different context code and is even more experimental ... 1.09 is *not* for production (1.08 is ok) i'll adapt the context part to the new calls 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 -----------------------------------------------------------------
participants (2)
-
Adam Reviczky
-
Hans Hagen