public class PdfUserProperty extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Class and Description |
---|---|
static class |
PdfUserProperty.ValueType |
Constructor and Description |
---|
PdfUserProperty(PdfDictionary pdfObject) |
PdfUserProperty(String name, boolean value) |
PdfUserProperty(String name, float value) |
PdfUserProperty(String name, int value) |
PdfUserProperty(String name, String value) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Boolean |
getValueAsBool() |
Float |
getValueAsFloat() |
String |
getValueAsText() |
String |
getValueFormattedRepresentation() |
PdfUserProperty.ValueType |
getValueType() |
Boolean |
isHidden() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfUserProperty |
setHidden(boolean isHidden) |
PdfUserProperty |
setName(String name) |
PdfUserProperty |
setValue(boolean value) |
PdfUserProperty |
setValue(float value) |
PdfUserProperty |
setValue(int value) |
PdfUserProperty |
setValue(String value) |
PdfUserProperty |
setValueFormattedRepresentation(String formattedRepresentation) |
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfUserProperty(PdfDictionary pdfObject)
public PdfUserProperty(String name, int value)
public PdfUserProperty(String name, float value)
public PdfUserProperty(String name, boolean value)
public String getName()
public PdfUserProperty setName(String name)
public PdfUserProperty.ValueType getValueType()
public PdfUserProperty setValue(String value)
public PdfUserProperty setValue(int value)
public PdfUserProperty setValue(float value)
public PdfUserProperty setValue(boolean value)
public String getValueAsText()
public Float getValueAsFloat()
public Boolean getValueAsBool()
public String getValueFormattedRepresentation()
public PdfUserProperty setValueFormattedRepresentation(String formattedRepresentation)
public Boolean isHidden()
public PdfUserProperty setHidden(boolean isHidden)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2022 iText Group NV. All rights reserved.