Skip to main content
Version: API v2 Preview

ObjectRef

Kind: class
Module/package: com.pdfdancer.common.model
SDK: com.pdfdancer.client:pdfdancer-client-java 2.0.0

Lightweight reference to a PDF object providing identity and type information. Object references enable efficient API operations by providing a way to identify and reference PDF objects without transferring their complete content. This design pattern reduces payload sizes and improves performance for operations that only need object identification and basic properties.

Declaration

public class com.pdfdancer.common.model.ObjectRef

Members

create

public static com.pdfdancer.common.model.ObjectRef create(java.lang.String, com.pdfdancer.common.model.Position, com.pdfdancer.common.model.ObjectType, com.pdfdancer.common.model.ObjectType)

Creates a new object reference with the specified properties. This constructor initializes all the essential information needed to identify and work with a PDF object through the API.

getInternalId

public java.lang.String getInternalId()

Returns the internal identifier for the referenced object.

getObjectRefType

public com.pdfdancer.common.model.ObjectType getObjectRefType()

getPosition

public com.pdfdancer.common.model.Position getPosition()

Returns the current getPosition information for the referenced object.

getType

public com.pdfdancer.common.model.ObjectType getType()

Returns the type classification of the referenced object.

setPosition

public void setPosition(com.pdfdancer.common.model.Position)

Updates the getPosition information for the referenced object. This method allows updating the object's spatial information as it may change through move operations.

View source at 9c04036fe114