Closed pr-apes closed 1 year ago
I know now what I was missing.
sd:aspectratio($pdfdoc:$pagenum)
should read sd:aspectratio(concat($pdfdoc, ':', $pagenum))
.
I wonder whether concat()
could be avoided when variables are used.
Many thanks for your help.
While I do get the point of the request (I think it makes sense to split the document and the page number), I doubt that I can easily change that. The page number extraction is done after processing the variables and changing that is a task I'd rather avoid (and I might not even find a good solution to keep XPath semantics).
So I'd rather close this as 'can't fix'...
Ok, closing the issue myself now.
@pgundlach,
compiling the following source with
sp --dummy --jobname=mixed-pages
:And then using
sp --dummy -v pdfdoc=mixed-pages.pdf
to compile this source:I get this output:
Of course, version is current latest:
Am I missing something from the new syntax or is this a bug?
Many thanks for your help.