On Sat, 27 Aug 2011, Hans Hagen wrote:
On 26-8-2011 08:16, Aditya Mahajan wrote:
2. What is the best way to handle multipage pdf images? I frequently create a big pdf with many images and then use
\externalfigure[...][page=2]
I don't know if svg has support for multiple pages or not.
The 'converter' program can filter the pages ... so we need to pass the page number.
Page number is already passed. The filename conversion should make use of it. I think that the best solution is to allow the user to configure (using a directive) the function that sets the new name for a pdf file, rather than hardcoding an extension. Also, can you add background-repeat: no-repeat; to imagetemplate. local imagetemplate = [[ %s[id="%s"] { display : block ; background-image : url(%s) ; background-size : 100%% auto ; background-repeat:no-repeat; width : %s ; height : %s ; }]] Normally, this should not matter, but sometimes part of the image is repeated due to rounding differences. Aditya