public class StrikeThrough extends TextMarkup
Modifier and Type | Method and Description |
---|---|
static StrikeThrough |
createDynamicObject(long handle) |
static StrikeThrough |
createFromQuadrilaterals(Document targetDocument,
QuadrilateralList markupArea,
Paint paint)
Create a new strike-through with defined area
|
getMarkupArea, getPaint, getPopup
getInfo, getLocked, getReplies
copy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoom
equals, hashCode
public static StrikeThrough createDynamicObject(long handle)
public static StrikeThrough createFromQuadrilaterals(Document targetDocument, QuadrilateralList markupArea, Paint paint)
markupArea
.
The returned object is associated with the targetDocument
but not yet part of any page.
It can be added to a page's list of annotations.targetDocument
- The document in which the links is usedmarkupArea
- The area on the page to be striked through.paint
- The paint used for drawing the strike throughjava.lang.IllegalArgumentException
- if the targetDocument
is null
java.lang.IllegalArgumentException
- if the targetDocument
has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
is read-onlyjava.lang.IllegalArgumentException
- if the markupArea
argument is null
java.lang.IllegalArgumentException
- if the markupArea
is emptyjava.lang.IllegalArgumentException
- if the paint
is null
java.lang.IllegalArgumentException
- if the paint
argument is not associated with targetDocument
java.lang.IllegalArgumentException
- if the paint
argument has a pdftoolbox.pdf.content.Paint.getColorSpace
other than a device color spacejava.lang.IllegalArgumentException
- if the paint
argument has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
with pdftoolbox.pdf.content.Transparency.getBlendMode
other than pdftoolbox.pdf.content.BlendMode.NORMAL