Class Merger

Class Merger

Namespace: Aspose.Words.LowCode
Assembly: Aspose.Words.dll (25.2.0)

Represents a group of methods intended to merge a variety of different types of documents into a single output document.

public static class Merger

Inheritance

objectMerger

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

The specified input and output files or streams, along with the desired merge and save options, are used to merge the given input documents into a single output document.

The merging functionality supports over 35 different file formats.

Methods

Merge(string, string[])

Merges the given input documents into a single output document using specified input and output file names.

public static void Merge(string outputFile, string[] inputFiles)

Parameters

outputFile string

The output file name.

inputFiles string[]

The input file names.

Remarks

By default Aspose.Words.LowCode.MergeFormatMode.KeepSourceFormatting is used.

Merge(string, string[], SaveFormat, MergeFormatMode)

Merges the given input documents into a single output document using specified input output file names and the final document format.

public static void Merge(string outputFile, string[] inputFiles, SaveFormat saveFormat, MergeFormatMode mergeFormatMode)

Parameters

outputFile string

The output file name.

inputFiles string[]

The input file names.

saveFormat SaveFormat

The save format.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Merge(string, string[], SaveOptions, MergeFormatMode)

Merges the given input documents into a single output document using specified input output file names and save options.

public static void Merge(string outputFile, string[] inputFiles, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

outputFile string

The output file name.

inputFiles string[]

The input file names.

saveOptions SaveOptions

The save options.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Merge(string, string[], LoadOptions[], SaveOptions, MergeFormatMode)

Merges the given input documents into a single output document using specified input output file names and save options.

public static void Merge(string outputFile, string[] inputFiles, LoadOptions[] loadOptions, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

outputFile string

The output file name.

inputFiles string[]

The input file names.

loadOptions LoadOptions[]

Load options for the input files.

saveOptions SaveOptions

The save options.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Merge(string[], MergeFormatMode)

Merges the given input documents into a single document and returns Aspose.Words.Document instance of the final document.

public static Document Merge(string[] inputFiles, MergeFormatMode mergeFormatMode)

Parameters

inputFiles string[]

The input file names.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Returns

Document

Merge(string[], LoadOptions[], MergeFormatMode)

Merges the given input documents into a single document and returns Aspose.Words.Document instance of the final document.

public static Document Merge(string[] inputFiles, LoadOptions[] loadOptions, MergeFormatMode mergeFormatMode)

Parameters

inputFiles string[]

The input file names.

loadOptions LoadOptions[]

Load options for the input files.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Returns

Document

Merge(Document[], MergeFormatMode)

Merges the given input documents into a single document and returns Aspose.Words.Document instance of the final document.

public static Document Merge(Document[] inputDocuments, MergeFormatMode mergeFormatMode)

Parameters

inputDocuments Document[]

The input documents.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Returns

Document

Merge(Stream, Stream[], SaveFormat)

Merges the given input documents into a single output document using specified input output streams and the final document format.

public static void Merge(Stream outputStream, Stream[] inputStreams, SaveFormat saveFormat)

Parameters

outputStream Stream

The output stream.

inputStreams Stream[]

The input streams.

saveFormat SaveFormat

The save format.

Merge(Stream, Stream[], SaveOptions, MergeFormatMode)

Merges the given input documents into a single output document using specified input output streams and save options.

public static void Merge(Stream outputStream, Stream[] inputStreams, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

outputStream Stream

The output stream.

inputStreams Stream[]

The input streams.

saveOptions SaveOptions

The save options.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Merge(Stream, Stream[], LoadOptions[], SaveOptions, MergeFormatMode)

Merges the given input documents into a single output document using specified input output streams and save options.

public static void Merge(Stream outputStream, Stream[] inputStreams, LoadOptions[] loadOptions, SaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

outputStream Stream

The output stream.

inputStreams Stream[]

The input streams.

loadOptions LoadOptions[]

Load options for the input files.

saveOptions SaveOptions

The save options.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Merge(Stream[], MergeFormatMode)

Merges the given input documents into a single document and returns Aspose.Words.Document instance of the final document.

public static Document Merge(Stream[] inputStreams, MergeFormatMode mergeFormatMode)

Parameters

inputStreams Stream[]

The input streams.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Returns

Document

Merge(Stream[], LoadOptions[], MergeFormatMode)

Merges the given input documents into a single document and returns Aspose.Words.Document instance of the final document.

public static Document Merge(Stream[] inputStreams, LoadOptions[] loadOptions, MergeFormatMode mergeFormatMode)

Parameters

inputStreams Stream[]

The input streams.

loadOptions LoadOptions[]

Load options for the input files.

mergeFormatMode MergeFormatMode

Specifies how to merge formatting that clashes.

Returns

Document

 English