public class ImageStamper extends Stamper
Stamper
. Defines an Image PDF Stamper.
PdfDocument.applyStamp(Stamper, PageSelection)
Constructor and Description |
---|
ImageStamper(BufferedImage bufferedImage)
Initializes a new instance of the
ImageStamper class. |
ImageStamper(byte[] imageBytes)
Initializes a new instance of the
ImageStamper class. |
ImageStamper(Path imagePath)
Initializes a new instance of the
ImageStamper class. |
ImageStamper(String imagePath)
Initializes a new instance of the
ImageStamper class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getImageData()
Gets image data (byte[]).
|
getHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset
public ImageStamper(String imagePath) throws IOException
ImageStamper
class.imagePath
- The path of the image to be stamped by this stamperIOException
- the io exceptionpublic ImageStamper(Path imagePath) throws IOException
ImageStamper
class.imagePath
- The uri of the image to be stamped by this stamperIOException
- the io exceptionpublic ImageStamper(byte[] imageBytes)
ImageStamper
class.imageBytes
- The uri of the image to be stamped by this stamperpublic ImageStamper(BufferedImage bufferedImage) throws IOException
ImageStamper
class.bufferedImage
- The BufferedImage
objectIOException
- the io exceptionCopyright © 2022–2023 Iron Software. All rights reserved.