PdfSubmitAction constructor

PdfSubmitAction(
  1. String url, {
  2. HttpMethod httpMethod = HttpMethod.post,
  3. SubmitDataFormat dataFormat = SubmitDataFormat.fdf,
  4. bool canonicalDateTimeFormat = false,
  5. bool submitCoordinates = false,
  6. bool includeNoValueFields = false,
  7. bool includeIncrementalUpdates = false,
  8. bool includeAnnotations = false,
  9. bool excludeNonUserAnnotations = false,
  10. bool embedForm = false,
  11. bool include = false,
  12. 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,
  );
}