public final class PdfFormAnnotationUtil extends Object
PdfFormAnnotation
and its dictionaries.| Modifier and Type | Method and Description |
|---|---|
static void |
addWidgetAnnotationToPage(PdfPage page,
PdfAnnotation annotation)
Add widget annotation to the specified page.
|
static void |
addWidgetAnnotationToPage(PdfPage page,
PdfAnnotation annotation,
int index)
Add widget annotation to the specified page.
|
static boolean |
isPureWidget(PdfDictionary fieldDict)
Check that <PdfDictionary> object is pure widget annotation.
|
static boolean |
isPureWidgetOrMergedField(PdfDictionary fieldDict)
Check that <PdfDictionary> object is widget annotation or merged field.
|
static void |
mergeWidgetWithParentField(PdfFormField field)
Merge single widget annotation with its parent field.
|
static void |
separateWidgetAndField(PdfFormField field)
Separate merged field to form field and pure widget annotation.
|
public static boolean isPureWidgetOrMergedField(PdfDictionary fieldDict)
fieldDict - field dictionary to check.public static boolean isPureWidget(PdfDictionary fieldDict)
fieldDict - field dictionary to check.public static void addWidgetAnnotationToPage(PdfPage page, PdfAnnotation annotation)
page - to which annotation should be added.annotation - widget annotation to add.public static void addWidgetAnnotationToPage(PdfPage page, PdfAnnotation annotation, int index)
page - to which annotation should be added.annotation - widget annotation to add.index - the index at which specified annotation will be added. If -1 then annotation
will be added to the end of an array.public static void mergeWidgetWithParentField(PdfFormField field)
field - parent field.public static void separateWidgetAndField(PdfFormField field)
field - to separate.Copyright © 1998–2025 Apryse Group NV. All rights reserved.