iText 7 7.1.11 API
iText.StyledXmlParser.Css.Media.MediaFeature Class Reference

Class that bundles all the media feature values. More...

Static Public Attributes

const String  COLOR = "color"
  Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device. More...
 
const String  COLOR_INDEX = "color-index"
  Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device. More...
 
const String  ASPECT_RATIO = "aspect-ratio"
  Value:
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device. More...
 
const String  GRID = "grid"
  Value: which is an that can only have the 0 and 1 value.
Media: all
Accepts min/max prefixes: no
Determines whether the output device is a grid device or a bitmap device. More...
 
const String  SCAN = "scan"
  Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices. More...
 
const String  ORIENTATION = "orientation"
  Value: landscape | portrait
Media: visual
Accepts min/max prefixes: no
Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode. More...
 
const String  MONOCHROME = "monochrome"
  Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device. More...
 
const String  HEIGHT = "height"
  Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer). More...
 
const String  RESOLUTION = "resolution"
  Value:
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device. More...
 
const String  WIDTH = "width"
  Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The width media feature describes the width of the rendering surface of the output device (such as the width of the document window, or the width of the page box on a printer). More...
 

Detailed Description

Class that bundles all the media feature values.

Member Data Documentation

◆ ASPECT_RATIO

const String iText.StyledXmlParser.Css.Media.MediaFeature.ASPECT_RATIO = "aspect-ratio"
static

Value:
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device.

Value:
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device. This value consists of two positive integers separated by a slash ("/") character. This represents the ratio of horizontal pixels (first term) to vertical pixels (second term).

◆ COLOR

const String iText.StyledXmlParser.Css.Media.MediaFeature.COLOR = "color"
static

Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device.

Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device. If the device is not a color device, this value is zero.

◆ COLOR_INDEX

const String iText.StyledXmlParser.Css.Media.MediaFeature.COLOR_INDEX = "color-index"
static

Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device.

◆ GRID

const String iText.StyledXmlParser.Css.Media.MediaFeature.GRID = "grid"
static

Value: which is an that can only have the 0 and 1 value.
Media: all
Accepts min/max prefixes: no
Determines whether the output device is a grid device or a bitmap device.

Value: which is an that can only have the 0 and 1 value.
Media: all
Accepts min/max prefixes: no
Determines whether the output device is a grid device or a bitmap device. If the device is grid-based (such as a TTY terminal or a phone display with only one font), the value is 1. Otherwise it is zero.

◆ HEIGHT

const String iText.StyledXmlParser.Css.Media.MediaFeature.HEIGHT = "height"
static

Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer).

◆ MONOCHROME

const String iText.StyledXmlParser.Css.Media.MediaFeature.MONOCHROME = "monochrome"
static

Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device.

Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device. If the device isn't monochrome, the device's value is 0.

◆ ORIENTATION

const String iText.StyledXmlParser.Css.Media.MediaFeature.ORIENTATION = "orientation"
static

Value: landscape | portrait
Media: visual
Accepts min/max prefixes: no
Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode.

◆ RESOLUTION

const String iText.StyledXmlParser.Css.Media.MediaFeature.RESOLUTION = "resolution"
static

Value:
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device.

Value:
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device. The resolution may be specified in either dots per inch (dpi) or dots per centimeter (dpcm).

◆ SCAN

const String iText.StyledXmlParser.Css.Media.MediaFeature.SCAN = "scan"
static

Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices.

◆ WIDTH

const String iText.StyledXmlParser.Css.Media.MediaFeature.WIDTH = "width"
static

Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The width media feature describes the width of the rendering surface of the output device (such as the width of the document window, or the width of the page box on a printer).