PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Retrieve and edit the appearance and content of form fields.
Note that the properties of different form field types may not be entirely consistent.
The steps to edit a form field are as follows:
Obtain the form object to be edited.
Modify the form properties.
Update the form appearance.
This example shows how to edit form fields:
if let widgetAnnotation = annotation as? CPDFWidgetAnnotation {
if let textWidget = widgetAnnotation as? CPDFTextWidgetAnnotation {
textWidget.stringValue = "text"
textWidget.updateAppearanceStream()
}
}CPDFWidgetAnnotation * annotation = (CPDFWidgetAnnotation *)myAnnotation;
((CPDFTextWidgetAnnotation*)annotation).stringValue = "text"
[annotation updateAppearanceStream];