Package | Description |
---|---|
com.itextpdf.layout | |
com.itextpdf.layout.element | |
com.itextpdf.layout.renderer | |
com.itextpdf.svg.converter |
Modifier and Type | Method and Description |
---|---|
T |
RootElement.add(Image image)
Adds an image to the root.
|
Modifier and Type | Method and Description |
---|---|
Image |
Image.scale(float horizontalScaling, float verticalScaling)
Scale the image relative to its default size.
|
Image |
Image.scaleAbsolute(float fitWidth, float fitHeight)
Scale the image to an absolute size.
|
Image |
Image.scaleToFit(float fitWidth, float fitHeight)
Scale the image to an absolute size.
|
Image |
Image.setAutoScale(boolean autoScale)
Sets the autoscale property for both width and height.
|
Image |
Image.setAutoScaleHeight(boolean autoScale)
Sets the autoscale property for the height of the image.
|
Image |
Image.setAutoScaleWidth(boolean autoScale)
Sets the autoscale property for the width of the image.
|
Image |
Image.setFixedPosition(float left, float bottom)
Sets values for a absolute repositioning of the Element.
|
Image |
Image.setFixedPosition(int pageNumber, float left, float bottom)
Sets values for a absolute repositioning of the Element, on a specific page.
|
Image |
Image.setHeight(float height)
Sets the height property of the image, measured in points.
|
Image |
Image.setHeight(UnitValue height)
Sets the height property of the image with a UnitValue .
|
Image |
Image.setMarginBottom(float value)
Sets the bottom margin width of the image.
|
Image |
Image.setMarginLeft(float value)
Sets the left margin width of the element.
|
Image |
Image.setMarginRight(float value)
Sets the right margin width of the image.
|
Image |
Image.setMargins(float marginTop, float marginRight, float marginBottom, float marginLeft)
Sets the margins around the image to a series of new widths.
|
Image |
Image.setMarginTop(float value)
Sets the top margin width of the image.
|
Image |
Image.setMaxHeight(float maxHeight)
Sets the max-height property of the image, measured in points.
|
Image |
Image.setMaxHeight(UnitValue maxHeight)
Sets the max-height property of the image with a UnitValue .
|
Image |
Image.setMaxWidth(float maxWidth)
Sets the max-width property of the image, measured in points.
|
Image |
Image.setMaxWidth(UnitValue maxWidth)
Sets the max-width property of the image with a UnitValue .
|
Image |
Image.setMinHeight(float minHeight)
Sets the min-height property of the image, measured in points.
|
Image |
Image.setMinHeight(UnitValue minHeight)
Sets the min-height property of the image with a UnitValue .
|
Image |
Image.setMinWidth(float minWidth)
Sets the min-width property of the image, measured in points.
|
Image |
Image.setMinWidth(UnitValue minWidth)
Sets the min-width property of the image with a UnitValue .
|
Image |
Image.setObjectFit(ObjectFit objectFit)
Sets an object-fit mode for the image.
|
Image |
Image.setPadding(float commonPadding)
Sets all paddings around the image to the same width.
|
Image |
Image.setPaddingBottom(float value)
Sets the bottom padding width of the image.
|
Image |
Image.setPaddingLeft(float value)
Sets the left padding width of the image.
|
Image |
Image.setPaddingRight(float value)
Sets the right padding width of the image.
|
Image |
Image.setPaddings(float paddingTop, float paddingRight, float paddingBottom, float paddingLeft)
Sets the paddings around the image to a series of new widths.
|
Image |
Image.setPaddingTop(float value)
Sets the top padding width of the image.
|
Image |
Image.setRotationAngle(double radAngle)
Sets the rotation radAngle.
|
Image |
Image.setWidth(float width)
Sets the width property of the image, measured in points.
|
Image |
Image.setWidth(UnitValue width)
Sets the width property of the image with a UnitValue .
|
Modifier and Type | Method and Description |
---|---|
Cell |
Cell.add(Image element)
Adds an image to the cell's contents.
|
Div |
Div.add(Image element)
Adds an image to the div's contents.
|
Table |
Table.addCell(Image image)
Adds a new cell with received image as a content.
|
Table |
Table.addFooterCell(Image image)
Adds a new cell with received image as a content to the footer of the table.
|
Table |
Table.addHeaderCell(Image image)
Adds a new cell with received image to the header of the table.
|
ListItem |
ListItem.setListSymbol(Image image)
Sets the list item symbol to be used.
|
List |
List.setListSymbol(Image image)
Sets the list symbol to be used.
|
Constructor and Description |
---|
ListItem(Image image)
Creates a list item with an image.
|
Constructor and Description |
---|
ImageRenderer(Image image)
Creates an ImageRenderer from its corresponding layout object.
|
Modifier and Type | Method and Description |
---|---|
static Image |
SvgConverter.convertToImage(InputStream stream, PdfDocument document)
Converts a String containing valid SVG content to an XObject that can then be used on the passed PdfDocument .
|
static Image |
SvgConverter.convertToImage(InputStream stream, PdfDocument document, ISvgConverterProperties props)
Converts a String containing valid SVG content to an image that can then be used on the passed PdfDocument .
|
Copyright © 1998–2021 iText Group NV. All rights reserved.