public class PdfAnnotationBorder extends PdfObjectWrapper<PdfArray>
Note (PDF 1.2): The dictionaries for some annotation types can include the BS (border style) entry. That entry specifies a border style dictionary that has more settings than this class. If an annotation has BS entry, then PdfAnnotationBorder
is ignored.
Constructor and Description |
---|
PdfAnnotationBorder(float hRadius, float vRadius, float width)
Creates a PdfAnnotationBorder with three numbers defining the horizontal corner radius, vertical corner radius, and border width, all in default user space units.
|
PdfAnnotationBorder(float hRadius, float vRadius, float width, PdfDashPattern dash)
Creates a PdfAnnotationBorder with three numbers defining the horizontal corner radius, vertical corner radius, and border width, all in default user space units and a dash pattern for the border lines.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfAnnotationBorder(float hRadius, float vRadius, float width)
PdfAnnotationBorder
with three numbers defining the horizontal corner radius, vertical corner radius, and border width, all in default user space units. If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.
hRadius
- horizontal corner radius
vRadius
- vertical corner radius
width
- width of the border
public PdfAnnotationBorder(float hRadius, float vRadius, float width, PdfDashPattern dash)
PdfAnnotationBorder
with three numbers defining the horizontal corner radius, vertical corner radius, and border width, all in default user space units and a dash pattern for the border lines. If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.
hRadius
- horizontal corner radius
vRadius
- vertical corner radius
width
- width of the border
dash
- the dash pattern
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfArray>
Copyright © 1998–2023 iText Group NV. All rights reserved.