PdfFloat

Overview

PdfFloat is a class in Aspose.PDF FOSS for Java. Inherits from: PdfBase.

PDF real number object (§7.3.3, ISO 32000-1:2008).

This class provides 14 methods for working with PdfFloat objects in Java programs. Available methods include: PdfFloat, accept, doubleValue, equals, floatValue, getObjectKey, hashCode, isDirty, isIndirect, setDirty, setObjectKey, toString, and 1 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: dirty, indirect, objectKey.

Properties

NameTypeAccessDescription
dirtybooleanReadReturns {@code true} if this object was modified since loading.
indirectbooleanReadReturns whether this object is an indirect object (has an object key).
objectKeyPdfObjectKeyReadReturns the indirect object key, or {@code null} for direct objects.

Methods

SignatureDescription
PdfFloat(value: double)Creates a PdfFloat from a double value.
PdfFloat(textValue: String)Creates a PdfFloat by parsing a PDF numeric token.
doubleValue()doubleReturns the value as a {@code double}.
floatValue()floatReturns the value as a {@code float}.
writeTo(os: OutputStream)
accept(visitor: IPdfVisitor<T>)T
equals(o: Object)boolean
hashCode()int
toString()String
isDirty()booleanReturns {@code true} if this object was modified since loading.
setDirty(dirty: boolean)Sets the dirty flag on this object.
isIndirect()booleanReturns whether this object is an indirect object (has an object key).
getObjectKey()PdfObjectKeyReturns the indirect object key, or {@code null} for direct objects.
setObjectKey(key: PdfObjectKey)Sets the indirect object key.

See Also