Package com.ironsoftware.ironpdf.stamp
Class Stamper
- java.lang.Object
- 
- com.ironsoftware.ironpdf.stamp.Stamper
 
- 
- Direct Known Subclasses:
- BarcodeStamper,- HtmlStamper,- ImageStamper,- TextStamper
 
 public abstract class Stamper extends Object Defines a PDF Stamper.PdfDocument.applyStamp(Stamper)
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalAlignmentgetHorizontalAlignment()Gets horizontal alignment.LengthgetHorizontalOffset()Gets horizontal offset.StringgetHtml()Gets html.StringgetHyperlink()Gets hyperlink.LengthgetMaxHeight()Gets the maximum height of the output stamp.LengthgetMaxWidth()Gets the maximum width of the output stamp.LengthgetMinHeight()Gets the minimum height of the output stamp.LengthgetMinWidth()Gets the minimum width of the output stamp.intgetOpacity()Gets opacity.intgetRotation()Gets rotation.doublegetScale()Gets scale.VerticalAlignmentgetVerticalAlignment()Gets vertical alignment.LengthgetVerticalOffset()Gets vertical offset.WaitForgetWaitFor()Get A convenient wrapper to wait for various events, or just wait for amount of time.booleanisStampBehindContent()Is stamp behind content boolean.voidsetHorizontalAlignment(HorizontalAlignment value)Sets horizontal alignment.voidsetHorizontalOffset(Length value)Sets horizontal offset.voidsetHtml(String value)Sets html.voidsetHyperlink(String value)Sets hyperlink.voidsetMaxHeight(Length value)Sets the maximum height of the output stamp.voidsetMaxWidth(Length value)Sets the maximum width of the output stamp.voidsetMinHeight(Length value)Sets the minimum height of the output stamp.voidsetMinWidth(Length value)Sets the minimum width of the output stamp.voidsetOpacity(int value)Sets opacity.voidsetRotation(int value)Sets rotation.voidsetScale(double value)Sets scale.voidsetStampBehindContent(boolean value)Sets stamp behind content.voidsetVerticalAlignment(VerticalAlignment value)Sets vertical alignment.voidsetVerticalOffset(Length value)Sets vertical offset.voidsetWaitFor(WaitFor waitFor)Set A convenient wrapper to wait for various events, or just wait for amount of time.
 
- 
- 
- 
Method Detail- 
getHtmlpublic final String getHtml() Gets html. The HTML fragment which will be stamped onto your PDF. All external references to JavaScript, CSS, and image files will be relative to HtmlBaseUrl.- Returns:
- the html
 
 - 
setHtmlpublic final void setHtml(String value) Sets html. The HTML fragment which will be stamped onto your PDF. All external references to JavaScript, CSS, and image files will be relative to HtmlBaseUrl.- Parameters:
- value- the value
 
 - 
getOpacitypublic final int getOpacity() Gets opacity. Allows the stamp to be transparent. 0 is fully invisible, 100 if fully opaque.- Returns:
- the opacity
 
 - 
setOpacitypublic final void setOpacity(int value) Sets opacity. Allows the stamp to be transparent. 0 is fully invisible, 100 if fully opaque.- Parameters:
- value- the value
 
 - 
getRotationpublic final int getRotation() Gets rotation. Rotates the stamp clockwise from 0 to 360 degrees as specified.- Returns:
- the rotation
 
 - 
setRotationpublic final void setRotation(int value) Sets rotation. Rotates the stamp clockwise from 0 to 360 degrees as specified.- Parameters:
- value- the value
 
 - 
getHorizontalAlignmentpublic final HorizontalAlignment getHorizontalAlignment() Gets horizontal alignment. The horizontal alignment of the stamp relative to the page.- Returns:
- the horizontal alignment
 
 - 
setHorizontalAlignmentpublic final void setHorizontalAlignment(HorizontalAlignment value) Sets horizontal alignment. The horizontal alignment of the stamp relative to the page.- Parameters:
- value- the value
 
 - 
getVerticalAlignmentpublic final VerticalAlignment getVerticalAlignment() Gets vertical alignment. The vertical alignment of the stamp relative to the page.- Returns:
- the vertical alignment
 
 - 
setVerticalAlignmentpublic final void setVerticalAlignment(VerticalAlignment value) Sets vertical alignment. The vertical alignment of the stamp relative to the page.- Parameters:
- value- the value
 
 - 
getHorizontalOffsetpublic final Length getHorizontalOffset() Gets horizontal offset. The horizontal offset. Default value is 0, and default unit isMeasurementUnit.PERCENTAGE. Value of 0 has no effect. Positive indicates an offset to the right direction. Negative indicates an offset to the left direction.- Returns:
- the horizontal offset
 
 - 
setHorizontalOffsetpublic final void setHorizontalOffset(Length value) Sets horizontal offset. The horizontal offset. Default value is 0, and default unit isMeasurementUnit.PERCENTAGE. Value of 0 has no effect. Positive indicates an offset to the right direction. Negative indicates an offset to the left direction.- Parameters:
- value- the value
 
 - 
getVerticalOffsetpublic final Length getVerticalOffset() Gets vertical offset. The horizontal offset. Default value is 0, and default unit isMeasurementUnit.PERCENTAGE. Value of 0 has no effect. Positive indicates an offset in the downward direction. Negative indicates an offset in the upward direction.- Returns:
- the vertical offset
 
 - 
setVerticalOffsetpublic final void setVerticalOffset(Length value) Sets vertical offset. The horizontal offset. Default value is 0, and default unit isMeasurementUnit.PERCENTAGE. Value of 0 has no effect. Positive indicates an offset in the downward direction. Negative indicates an offset in the upward direction.- Parameters:
- value- the value
 
 - 
getMaxWidthpublic final Length getMaxWidth() Gets the maximum width of the output stamp.- Returns:
- the max width
 
 - 
setMaxWidthpublic final void setMaxWidth(Length value) Sets the maximum width of the output stamp.- Parameters:
- value- the value
 
 - 
getMaxHeightpublic final Length getMaxHeight() Gets the maximum height of the output stamp.- Returns:
- the max height
 
 - 
setMaxHeightpublic final void setMaxHeight(Length value) Sets the maximum height of the output stamp.- Parameters:
- value- the value
 
 - 
getMinWidthpublic final Length getMinWidth() Gets the minimum width of the output stamp.- Returns:
- the min width
 
 - 
setMinWidthpublic final void setMinWidth(Length value) Sets the minimum width of the output stamp.- Parameters:
- value- the value
 
 - 
getMinHeightpublic final Length getMinHeight() Gets the minimum height of the output stamp.- Returns:
- the min height
 
 - 
setMinHeightpublic final void setMinHeight(Length value) Sets the minimum height of the output stamp.- Parameters:
- value- the value
 
 - 
getHyperlinkpublic final String getHyperlink() Gets hyperlink. Makes stamped elements of this Stamper have an on-click hyperlink. Note: HTML links created by <a href=''> tags are not reserved by stamping.- Returns:
- the hyperlink
 
 - 
setHyperlinkpublic final void setHyperlink(String value) Sets hyperlink. Makes stamped elements of this Stamper have an on-click hyperlink. Note: HTML links created by <a href=''> tags are not reserved by stamping.- Parameters:
- value- the value
 
 - 
getScalepublic final double getScale() Gets scale. Applies a percentage scale to the stamps to be larger or smaller. Default is 100 (Percent) which has no effect.- Returns:
- the scale
 
 - 
setScalepublic final void setScale(double value) Sets scale. Applies a percentage scale to the stamps to be larger or smaller. Default is 100 (Percent) which has no effect.- Parameters:
- value- the value
 
 - 
isStampBehindContentpublic final boolean isStampBehindContent() Is stamp behind content boolean. Set to true for apply stamp behind the content. If the content is opaque, the stamp may be invisible.- Returns:
- the boolean
 
 - 
setStampBehindContentpublic final void setStampBehindContent(boolean value) Sets stamp behind content. Set to true for apply stamp behind the content. If the content is opaque, the stamp may be invisible.- Parameters:
- value- the value
 
 - 
getWaitForpublic WaitFor getWaitFor() Get A convenient wrapper to wait for various events, or just wait for amount of time.
 - 
setWaitForpublic void setWaitFor(WaitFor waitFor) Set A convenient wrapper to wait for various events, or just wait for amount of time.
 
- 
 
-