[luatex] Getting different image parameters

Patrick Gundlach patrick at gundla.ch
Tue May 24 19:32:10 CEST 2011


Hi,

I have a PDF file and I'd like to query the dimensions of the different PDF boxes (art box, trim box etc.)

I guess I have to do something like

a = img.scan({filename = "cow.pdf", pagebox = "media"})
b = img.scan({filename = "cow.pdf", pagebox = "art"})
c = img.scan({filename = "cow.pdf", pagebox = "crop"})

print(a.width, a.height)
print(b.width, b.height)
print(c.width, c.height)

right?

Patrick




More information about the luatex mailing list