Package com.ironsoftware.ironpdf.stamp
Class ImageStamper
- java.lang.Object
- 
- com.ironsoftware.ironpdf.stamp.Stamper
- 
- com.ironsoftware.ironpdf.stamp.ImageStamper
 
 
- 
 public class ImageStamper extends Stamper This allows the user to edit an existing PDF by adding an image. A subclass ofStamper. Defines an Image PDF Stamper.PdfDocument.applyStamp(Stamper, PageSelection)
- 
- 
Constructor SummaryConstructors Constructor Description ImageStamper(byte[] imageBytes)Initializes a new instance of theImageStamperclass.ImageStamper(BufferedImage bufferedImage)Initializes a new instance of theImageStamperclass.ImageStamper(String imagePath)Initializes a new instance of theImageStamperclass.ImageStamper(Path imagePath)Initializes a new instance of theImageStamperclass.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getImageData()Gets image data (byte[]).- 
Methods inherited from class com.ironsoftware.ironpdf.stamp.StampergetHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, getWaitFor, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset, setWaitFor
 
- 
 
- 
- 
- 
Constructor Detail- 
ImageStamperpublic ImageStamper(String imagePath) throws IOException Initializes a new instance of theImageStamperclass.- Parameters:
- imagePath- The path of the image to be stamped by this stamper
- Throws:
- IOException- the io exception
 
 - 
ImageStamperpublic ImageStamper(Path imagePath) throws IOException Initializes a new instance of theImageStamperclass.- Parameters:
- imagePath- The uri of the image to be stamped by this stamper
- Throws:
- IOException- the io exception
 
 - 
ImageStamperpublic ImageStamper(byte[] imageBytes) Initializes a new instance of theImageStamperclass.- Parameters:
- imageBytes- The uri of the image to be stamped by this stamper
 
 - 
ImageStamperpublic ImageStamper(BufferedImage bufferedImage) throws IOException Initializes a new instance of theImageStamperclass.- Parameters:
- bufferedImage- The- BufferedImageobject
- Throws:
- IOException- the io exception
 
 
- 
 
-