copyWith method
PdfRewriteOptions
copyWith({
- bool? keepDocumentInfo,
- bool? keepXmpMetadata,
- bool? keepAttachments,
- bool? keepLayers,
- bool? keepBookmarks,
- bool? keepPageLabels,
- bool? keepAnnotations,
- bool? keepFormFields,
- bool? keepStructureTree,
- bool? deduplicateResources,
- bool? rejectSignedSources,
- bool? keepInvalidSignatures,
- bool? removeSignatureAppearance,
Copy with the given keys replaced.
Implementation
PdfRewriteOptions copyWith({
bool? keepDocumentInfo,
bool? keepXmpMetadata,
bool? keepAttachments,
bool? keepLayers,
bool? keepBookmarks,
bool? keepPageLabels,
bool? keepAnnotations,
bool? keepFormFields,
bool? keepStructureTree,
bool? deduplicateResources,
bool? rejectSignedSources,
bool? keepInvalidSignatures,
bool? removeSignatureAppearance,
}) {
return PdfRewriteOptions(
keepDocumentInfo: keepDocumentInfo ?? this.keepDocumentInfo,
keepXmpMetadata: keepXmpMetadata ?? this.keepXmpMetadata,
keepAttachments: keepAttachments ?? this.keepAttachments,
keepLayers: keepLayers ?? this.keepLayers,
keepBookmarks: keepBookmarks ?? this.keepBookmarks,
keepPageLabels: keepPageLabels ?? this.keepPageLabels,
keepAnnotations: keepAnnotations ?? this.keepAnnotations,
keepFormFields: keepFormFields ?? this.keepFormFields,
keepStructureTree: keepStructureTree ?? this.keepStructureTree,
deduplicateResources: deduplicateResources ?? this.deduplicateResources,
rejectSignedSources: rejectSignedSources ?? this.rejectSignedSources,
keepInvalidSignatures:
keepInvalidSignatures ?? this.keepInvalidSignatures,
removeSignatureAppearance:
removeSignatureAppearance ?? this.removeSignatureAppearance,
);
}