toMergeOptions method
Translates into the options of the object importer.
The rewrite is a merge with a single source; what is called keep here is what is called import there.
Implementation
PdfMergeOptions toMergeOptions() => PdfMergeOptions(
importAnnotations: keepAnnotations,
importFormFields: keepFormFields,
importBookmarks: keepBookmarks,
importLayers: keepLayers,
importPageLabels: keepPageLabels,
importAttachments: keepAttachments,
importXmpMetadata: keepXmpMetadata,
dropStructureTree: !keepStructureTree,
copyDocumentInfoFromFirst: keepDocumentInfo,
deduplicateResources: deduplicateResources,
rejectSignedSources: rejectSignedSources,
keepInvalidSignatures: keepInvalidSignatures,
removeSignatureAppearance: removeSignatureAppearance,
);