public class ContentElement extends NativeObject
Modifier and Type | Method and Description |
---|---|
static ContentElement |
copy(Document targetDocument,
ContentElement contentElement)
Copy a content element
|
static ContentElement |
createDynamicObject(long handle) |
Rectangle |
getBoundingBox()
the bounding box (Getter)
|
AffineTransform |
getTransform()
the transform to be applied to the alignment rectangle (Getter)
|
void |
setTransform(AffineTransform value)
the transform to be applied to the alignment rectangle (Setter)
|
equals, hashCode
public static ContentElement createDynamicObject(long handle)
public static ContentElement copy(Document targetDocument, ContentElement contentElement) throws java.io.IOException, ConformanceException
targetDocument
- the output document with which the returned object is associatedcontentElement
- a content element of a different documentjava.io.IOException
- Error reading from the source document or writing to the target documentConformanceException
- The conformance level of the source document is not compatible
with the conformance level of the target document.ConformanceException
- The conformance of the targetDocument
is PDF/A with a conformance level "a": PDF/A-1a, PDF/A-2a, PDF/A-3a.java.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- the contentElement
object is not associated with an input documentjava.lang.IllegalArgumentException
- the contentElement
argument is null
java.lang.IllegalArgumentException
- the contentElement
object has already been closedpublic Rectangle getBoundingBox()
java.lang.IllegalStateException
- the object has already been closedpublic AffineTransform getTransform()
java.lang.IllegalStateException
- the object has already been closedpublic void setTransform(AffineTransform value)
java.lang.IllegalStateException
- the object has already been closedjava.lang.IllegalArgumentException
- if the transform to be set is non-invertiblejava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if value
is null