PdfSubmitAction constructor
PdfSubmitAction(
- String url, {
- HttpMethod httpMethod = HttpMethod.post,
- SubmitDataFormat dataFormat = SubmitDataFormat.fdf,
- bool canonicalDateTimeFormat = false,
- bool submitCoordinates = false,
- bool includeNoValueFields = false,
- bool includeIncrementalUpdates = false,
- bool includeAnnotations = false,
- bool excludeNonUserAnnotations = false,
- bool embedForm = false,
- bool include = false,
- List<
PdfField> ? fields,
Initializes a new instance of the PdfSubmitAction class with URL to submit the form data
Implementation
PdfSubmitAction(String url,
{HttpMethod httpMethod = HttpMethod.post,
SubmitDataFormat dataFormat = SubmitDataFormat.fdf,
bool canonicalDateTimeFormat = false,
bool submitCoordinates = false,
bool includeNoValueFields = false,
bool includeIncrementalUpdates = false,
bool includeAnnotations = false,
bool excludeNonUserAnnotations = false,
bool embedForm = false,
bool include = false,
List<PdfField>? fields})
: super._() {
final PdfActionHelper helper = PdfActionHelper.getHelper(this);
helper.dictionary.beginSave = _dictionaryBeginSave;
helper.dictionary.setProperty(
PdfDictionaryProperties.s, PdfName(PdfDictionaryProperties.submitForm));
if (url.isEmpty) {
ArgumentError.value("The URL can't be an empty string.");
}
_url = url;
helper.dictionary.setProperty(PdfDictionaryProperties.f, PdfString(_url));
_initValues(
httpMethod = HttpMethod.post,
dataFormat,
canonicalDateTimeFormat,
submitCoordinates,
includeNoValueFields,
includeIncrementalUpdates,
includeAnnotations,
excludeNonUserAnnotations,
embedForm,
include,
fields);
}