class ImageSpec
- namespace: luatex.img
Must be a table, and that table must contain a filename
key.
Reference:
- Corresponding C source code: luatex-api.h#L506-L532
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
ImageSpec.attr
the image attributes for LuaTeX
ImageSpec.bbox
table with 4 boundingbox dimensions llx
, lly
, urx
and ury
overruling the pagebox
entry
ImageSpec.colordepth
the number of bits used by the color space
ImageSpec.colorspace
the color space object number
ImageSpec.depth
the image depth for LuaTeX
ImageSpec.filename
the image file name
ImageSpec.filepath
the full (expanded) file name of the image
ImageSpec.height
the image height for LuaTeX
ImageSpec.imagetype
one of pdf
, png
, jpg
, jp2
or jbig2
ImageSpec.index
the PDF image name suffix
ImageSpec.objnum
the PDF image object number
ImageSpec.page
the identifier for the requested image page
ImageSpec.pagebox
the requested bounding box, one of none
, media
, crop
, bleed
, trim
, art
ImageSpec.pages
the total number of available pages
ImageSpec.rotation
the image rotation from included PDF file, in multiples of 90 deg.
ImageSpec.stream
the raw stream data for an /Xobject
/Form
object
ImageSpec.transform
the image transform, integer number 0..7
ImageSpec.orientation
the (jpeg) image orientation, integer number 1..8 (0 for unset)
ImageSpec.width
the image width for LuaTeX
ImageSpec.xres
the horizontal natural image resolution (in \DPI)
ImageSpec.xsize
the natural image width
ImageSpec.yres
the vertical natural image resolution (in \DPI)
ImageSpec.ysize
the natural image height
ImageSpec.visiblefilename
when set, this name will find its way in the PDF file as PTEX
specification; when an empty string is assigned nothing is written to file; otherwise the natural filename is taken
ImageSpec.userpassword
the userpassword needed for opening a PDF file
ImageSpec.ownerpassword
the ownerpassword needed for opening a PDF file
ImageSpec.keepopen
keep the PDF file open
ImageSpec.nobbox
don't add a boundingbox specification for streams
ImageSpec.nolength
don't add length key nor compress for streams
ImageSpec.nosize
don't add size fields for streams