PdfPageObjectType


public final class PdfPageObjectType
extends Object

java.lang.Object
   ↳ android.graphics.pdf.component.PdfPageObjectType


This class holds the set of constants representing the types of a PDF page objects.

Summary

Constants

int IMAGE

Represents an image page object

int PATH

Represents a path page object

int TEXT

Represents a text page object

int UNKNOWN

Represents the type of page object that cannot be determined

Public methods

static boolean isValidType(int type)

Checks if the given type is a valid PDF page object type.

Inherited methods

Constants

IMAGE

Added in S Extensions 18
public static final int IMAGE

Represents an image page object

Constant Value: 3 (0x00000003)

PATH

Added in S Extensions 18
public static final int PATH

Represents a path page object

Constant Value: 2 (0x00000002)

TEXT

Added in S Extensions 18
public static final int TEXT

Represents a text page object

Constant Value: 1 (0x00000001)

UNKNOWN

Added in S Extensions 18
public static final int UNKNOWN

Represents the type of page object that cannot be determined

Constant Value: 0 (0x00000000)

Public methods

isValidType

Added in S Extensions 18
public static boolean isValidType (int type)

Checks if the given type is a valid PDF page object type.

Parameters
type int: The type to check.

Returns
boolean true if the type is valid, false otherwise.