-
I think we already discussed the issue, but I think there could be another approach. The issue itself is having access to image info data in filters (number of pages, image height and width). I have just discovered what I think it might be the code for publisher/src/lua/publisher/layout_functions.lua Lines 250 to 254 in 29ea54b Is there no way to make a function similar to the following one available in filters? local function number_of_pages(filename)
local figure = publisher.imageinfo(filename)
return figure.img.pages
end If that where possible, this would help to get figure dimensions in filters. Many thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is not (easily) possible, I am afraid. The |
Beta Was this translation helpful? Give feedback.
This is not (easily) possible, I am afraid. The
number-of-pages()
function uses LuaTeX, whereas during the preprocessing state I don't have access to LuaTeX.