copyWith method

PdfMergeOptions copyWith({
  1. PdfMergeMode? mode,
  2. bool? importAnnotations,
  3. bool? importFormFields,
  4. PdfFieldNameConflictPolicy? fieldNameConflict,
  5. bool? importBookmarks,
  6. bool? importNamedDestinations,
  7. bool? importLayers,
  8. bool? importPageLabels,
  9. bool? importAttachments,
  10. bool? importXmpMetadata,
  11. bool? dropStructureTree,
  12. bool? copyDocumentInfoFromFirst,
  13. bool? groupBookmarksPerDocument,
  14. bool? rejectSignedSources,
  15. bool? keepInvalidSignatures,
  16. bool? removeSignatureAppearance,
  17. bool? deduplicateResources,
})

Implementation

PdfMergeOptions copyWith({
  PdfMergeMode? mode,
  bool? importAnnotations,
  bool? importFormFields,
  PdfFieldNameConflictPolicy? fieldNameConflict,
  bool? importBookmarks,
  bool? importNamedDestinations,
  bool? importLayers,
  bool? importPageLabels,
  bool? importAttachments,
  bool? importXmpMetadata,
  bool? dropStructureTree,
  bool? copyDocumentInfoFromFirst,
  bool? groupBookmarksPerDocument,
  bool? rejectSignedSources,
  bool? keepInvalidSignatures,
  bool? removeSignatureAppearance,
  bool? deduplicateResources,
}) {
  return PdfMergeOptions(
    mode: mode ?? this.mode,
    importAnnotations: importAnnotations ?? this.importAnnotations,
    importFormFields: importFormFields ?? this.importFormFields,
    fieldNameConflict: fieldNameConflict ?? this.fieldNameConflict,
    importBookmarks: importBookmarks ?? this.importBookmarks,
    importNamedDestinations:
        importNamedDestinations ?? this.importNamedDestinations,
    importLayers: importLayers ?? this.importLayers,
    importPageLabels: importPageLabels ?? this.importPageLabels,
    importAttachments: importAttachments ?? this.importAttachments,
    importXmpMetadata: importXmpMetadata ?? this.importXmpMetadata,
    dropStructureTree: dropStructureTree ?? this.dropStructureTree,
    copyDocumentInfoFromFirst:
        copyDocumentInfoFromFirst ?? this.copyDocumentInfoFromFirst,
    groupBookmarksPerDocument:
        groupBookmarksPerDocument ?? this.groupBookmarksPerDocument,
    rejectSignedSources: rejectSignedSources ?? this.rejectSignedSources,
    keepInvalidSignatures:
        keepInvalidSignatures ?? this.keepInvalidSignatures,
    removeSignatureAppearance:
        removeSignatureAppearance ?? this.removeSignatureAppearance,
    deduplicateResources: deduplicateResources ?? this.deduplicateResources,
  );
}