public class AnnotationDefaultAppearance extends Object
Note that only standard font names that do not require font resources are supported.
Note that it is possible to create annotation with custom font name in DA, but this require manual resource modifications (you have to put font in DR of AcroForm and use its resource name in DA) and only Acrobat supports that workflow.
Constructor and Description |
---|
AnnotationDefaultAppearance()
Creates the default instance of AnnotationDefaultAppearance .
|
Modifier and Type | Method and Description |
---|---|
AnnotationDefaultAppearance |
setColor(DeviceCmyk cmykColor)
Sets the AnnotationDefaultAppearance 's default font color.
|
AnnotationDefaultAppearance |
setColor(DeviceGray grayColor)
Sets the AnnotationDefaultAppearance 's default font color.
|
AnnotationDefaultAppearance |
setColor(DeviceRgb rgbColor)
Sets the AnnotationDefaultAppearance 's default font color.
|
AnnotationDefaultAppearance |
setFont(ExtendedAnnotationFont font)
Sets the AnnotationDefaultAppearance 's default font.
|
AnnotationDefaultAppearance |
setFont(StandardAnnotationFont font)
Sets the AnnotationDefaultAppearance 's default font.
|
AnnotationDefaultAppearance |
setFontSize(float fontSize)
Sets the AnnotationDefaultAppearance 's default font size.
|
PdfString |
toPdfString()
Gets the AnnotationDefaultAppearance 's representation as PdfString .
|
public AnnotationDefaultAppearance()
AnnotationDefaultAppearance
.
The default font is StandardAnnotationFont.Helvetica
. The default font size is 12.
public AnnotationDefaultAppearance setFont(StandardAnnotationFont font)
AnnotationDefaultAppearance
's default font.
font
- one of standard annotation fonts
to be set as the default one for this AnnotationDefaultAppearance
AnnotationDefaultAppearance
public AnnotationDefaultAppearance setFont(ExtendedAnnotationFont font)
AnnotationDefaultAppearance
's default font.
font
- one of extended annotation fonts
to be set as the default one for this AnnotationDefaultAppearance
AnnotationDefaultAppearance
public AnnotationDefaultAppearance setFontSize(float fontSize)
AnnotationDefaultAppearance
's default font size.
fontSize
- font size to be set as the AnnotationDefaultAppearance
's default font size
AnnotationDefaultAppearance
public AnnotationDefaultAppearance setColor(DeviceRgb rgbColor)
AnnotationDefaultAppearance
's default font color.
rgbColor
- DeviceRgb
to be set as the AnnotationDefaultAppearance
's default font color
AnnotationDefaultAppearance
public AnnotationDefaultAppearance setColor(DeviceCmyk cmykColor)
AnnotationDefaultAppearance
's default font color.
cmykColor
- DeviceCmyk
to be set as the AnnotationDefaultAppearance
's default font color
AnnotationDefaultAppearance
public AnnotationDefaultAppearance setColor(DeviceGray grayColor)
AnnotationDefaultAppearance
's default font color.
grayColor
- DeviceGray
to be set as the AnnotationDefaultAppearance
's default font color
AnnotationDefaultAppearance
public PdfString toPdfString()
AnnotationDefaultAppearance
's representation as PdfString
.
PdfString
representation of this AnnotationDefaultAppearance
Copyright © 1998–2023 iText Group NV. All rights reserved.