speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
293 stars 36 forks source link

page numbers in XPath functions with PDF images #456

Closed pr-apes closed 1 year ago

pr-apes commented 1 year ago

@pgundlach,

I have just realized that I cannot find a way to specifiy page numbers for sd:aspectratio(), sd:imagewidth() and sd:imageheight().

Nothing prevents that different pages may have different dimensions in the same PDF document.

If this might help, having a syntax such as (image:page_number) may avoid confusions with units in sd:imagewidth() and sd:imageheight().

Many thanks for your help.

pgundlach commented 1 year ago

Good point, I have not thought of this. The colon syntax seems legit. Thank you very much for this suggestion.

pgundlach commented 1 year ago

Now in version 4.13.6. Thanks again for the feature request.

pr-apes commented 1 year ago

Many thanks for the new release.