Skip to content

class Image

  • namespace: luatex.img

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


Image.attr


Image.attr : string

the image attributes for LuaTeX

Image.bbox


Image.bbox : table

table with 4 boundingbox dimensions llx, lly, urx and ury overruling the pagebox entry

Image.colordepth


Image.colordepth : number

the number of bits used by the color space

Image.colorspace


Image.colorspace : number

the color space object number

Image.depth


Image.depth : number

the image depth for LuaTeX

Image.filename


Image.filename : string

the image file name

Image.filepath


Image.filepath : string

the full (expanded) file name of the image

Image.height


Image.height : number

the image height for LuaTeX

Image.imagetype


Image.imagetype : string

one of pdf, png, jpg, jp2 or jbig2

Image.index


Image.index : number

the PDF image name suffix

Image.objnum


Image.objnum : number

the PDF image object number

Image.page


Image.page : number

the identifier for the requested image page

Image.pagebox


Image.pagebox : string

the requested bounding box, one of none, media, crop, bleed, trim, art

Image.pages


Image.pages : number

the total number of available pages

Image.rotation


Image.rotation : number

the image rotation from included PDF file, in multiples of 90 deg.

Image.stream


Image.stream : string

the raw stream data for an /Xobject /Form object

Image.transform


Image.transform : number

the image transform, integer number 0..7

Image.orientation


Image.orientation : number

the (jpeg) image orientation, integer number 1..8 (0 for unset)

Image.width


Image.width : number

the image width for LuaTeX

Image.xres


Image.xres : number

the horizontal natural image resolution (in \DPI)

Image.xsize


Image.xsize : number

the natural image width

Image.yres


Image.yres : number

the vertical natural image resolution (in \DPI)

Image.ysize


Image.ysize : number

the natural image height

Image.visiblefilename


Image.visiblefilename : string

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

Image.userpassword


Image.userpassword : string

the userpassword needed for opening a PDF file

Image.ownerpassword


Image.ownerpassword : string

the ownerpassword needed for opening a PDF file

Image.keepopen


Image.keepopen : boolean

keep the PDF file open

Image.nobbox


Image.nobbox : boolean

don't add a boundingbox specification for streams

Image.nolength


Image.nolength : boolean

don't add length key nor compress for streams

Image.nosize


Image.nosize : boolean

don't add size fields for streams