Class CPDFStampAnnotation

java.lang.Object
com.compdfkit.core.annotation.CPDFAnnotation
com.compdfkit.core.annotation.CPDFStampAnnotation

public class CPDFStampAnnotation extends CPDFAnnotation
A stamp annotation displays text or graphics intended to look as if they were stamped on the page with a rubber stamp. A stamp annotation's appearance can be with an icon or a bitmap.
  • Method Details

    • setStandardStamp

      public boolean setStandardStamp(CPDFStampAnnotation.StandardStamp standardStamp)
      Sets standard stamp type.
      Parameters:
      standardStamp - Standard stamp type.
      Returns:
      Returns whether to successfully set standard stamp type.
    • getStandardStamp

      public CPDFStampAnnotation.StandardStamp getStandardStamp()
      Gets standard stamp type.
      Returns:
      Returns standard stamp type.
    • setTextStamp

      public boolean setTextStamp(CPDFStampAnnotation.TextStamp textStamp)
      Sets attribute of text stamp.
      Parameters:
      textStamp - Attribute of text stamp.
      Returns:
      Returns whether to successfully set attribute of text stamp.
    • getTextStamp

      public CPDFStampAnnotation.TextStamp getTextStamp()
      Gets attribute of text stamp.
      Returns:
      Returns attribute of text stamp.
    • setDigitalStamp

      public boolean setDigitalStamp(CPDFStampAnnotation.DigitalStamp digitalStamp)
      Sets attribute of digital stamp.
      Parameters:
      digitalStamp - Attribute of digital stamp.
      Returns:
      Returns whether to successfully set attribute of digital stamp.
    • getDigitalStamp

      public CPDFStampAnnotation.DigitalStamp getDigitalStamp()
      Gets attribute of digital stamp.
      Returns:
      Returns attribute of digital stamp.
    • setImageStamp

      public boolean setImageStamp(String imagePath)
      Sets resource of image stamp.
      Parameters:
      imagePath - Image path of stamp.
      Returns:
      Returns whether to successfully set resource of image stamp.
    • getStampType

      public CPDFStampAnnotation.StampType getStampType()
      Gets stamp type.
      Returns:
      Returns stamp type
    • setStampSignature

      public boolean setStampSignature(boolean isStampSignature)
    • isStampSignature

      public boolean isStampSignature()
    • setIconName

      public boolean setIconName(String name)
      Not in use currently
    • getIconName

      public String getIconName()
      Not in use currently
    • updateAp

      public boolean updateAp()
    • updateApWithBitmap

      public boolean updateApWithBitmap(int[] pixels, int width, int height)
    • getAppearanceByPixel

      public int[] getAppearanceByPixel(int width, int height, CPDFAnnotation.AppearanceType type)