public class

StandardStampOption

extends CustomStampOption
java.lang.Object
   ↳ com.pdftron.pdf.model.CustomStampOption
     ↳ com.pdftron.pdf.model.StandardStampOption

Class Overview

The option for creating a standard rubber stamp.

Summary

[Expand]
Inherited Fields
From class com.pdftron.pdf.model.CustomStampOption
Public Constructors
StandardStampOption(String text, String secondText, int bgColorStart, int bgColorEnd, int textColor, int borderColor, double fillOpacity, boolean isPointingLeft, boolean isPointingRight)
Public Methods
synchronized static boolean checkStandardStamp(Context context, String name)
Checks whether a certain standard stamp exists on disk and it is valid
synchronized static Bitmap getStandardStampBitmap(Context context, String name)
Gets the bitmap of a standard rubber stamp.
synchronized static Obj getStandardStampObj(Context context, String name)
Gets the saved custom rubber stamp at a certain position.
synchronized static void saveStandardStamp(Context context, String name, CustomStampOption stampOption, Bitmap bitmap)
Saves a new custom rubber stamp.
[Expand]
Inherited Methods
From class com.pdftron.pdf.model.CustomStampOption
From class java.lang.Object

Public Constructors

public StandardStampOption (String text, String secondText, int bgColorStart, int bgColorEnd, int textColor, int borderColor, double fillOpacity, boolean isPointingLeft, boolean isPointingRight)

Public Methods

public static synchronized boolean checkStandardStamp (Context context, String name)

Checks whether a certain standard stamp exists on disk and it is valid

Parameters
context The context
name The name of standard rubber stamp
Returns
  • True if the standard stamp exists on disk and it is valid; False otherwise

public static synchronized Bitmap getStandardStampBitmap (Context context, String name)

Gets the bitmap of a standard rubber stamp.

Parameters
context The context
name The name of standard rubber stamp
Returns
  • The bitmap of custom rubber stamp, or null if it could not be obtained

public static synchronized Obj getStandardStampObj (Context context, String name)

Gets the saved custom rubber stamp at a certain position.

Parameters
context The context
name The name of standard rubber stamp
Returns
  • The saved custom rubber stamp as SDF Obj

public static synchronized void saveStandardStamp (Context context, String name, CustomStampOption stampOption, Bitmap bitmap)

Saves a new custom rubber stamp.

Parameters
context The context
stampOption The new custom rubber stamp
bitmap The generated bitmap which can be reloaded later to avoid recreating the bitmap