Class Merger

Class Merger

Tên không gian: Aspose.Words.LowCode Tổng hợp: Aspose.Words.dll (25.5.0)

Nó đại diện cho một nhóm các phương pháp được thiết kế để kết hợp một loạt các loại tài liệu khác nhau vào một tài liệu xuất khẩu duy nhất.

public class Merger : Processor

Inheritance

object Processor Merger

Thành viên thừa kế

Processor.mResultDocument , Processor.From(string, LoadOptions) , Processor.From(Stream, LoadOptions) , Processor.To(string, SaveOptions) , Processor.To(string, SaveFormat) , Processor.To(Stream, SaveOptions) , Processor.To(Stream, SaveFormat) , Processor.To(List, SaveOptions) , Processor.To(List, SaveFormat) , Processor.Execute() , Processor.ExecuteCore() , Processor.CheckArgumentsSet() , Processor.GetPartFileName(string, int, SaveFormat) , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

Các tệp nhập và xuất cụ thể hoặc dòng, cùng với các tùy chọn kết hợp và lưu mong muốn, được sử dụng để kết hợp các tài liệu nhập cụ thể vào một tài liệu xuất duy nhất. Tính năng kết hợp hỗ trợ hơn 35 định dạng tệp khác nhau.

Methods

Create()

Tạo một ví dụ mới của bộ xử lý kết hợp thư.

public static Merger Create()

Returns

Merger

Create(MergerContext)

Tạo một ví dụ mới của bộ xử lý kết hợp thư.

public static Merger Create(MergerContext context)

Parameters

context MergerContext

Returns

Merger

ExecuteCore()

protected override void ExecuteCore()

Merge(Thẻ, string[])

Chuyển các tài liệu nhập cụ thể vào một văn bản output duy nhất bằng cách sử dụng input được chỉ địnhvà tên tệp xuất bằng cách sử dụng Aspose.Words.LowCode.MergeFormatModa.KeepSourceFormatting.

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

Parameters

outputFile string

Tên của file output.

inputFiles string [ ]

Tên file input.

Remarks

Nếu định dạng xuất là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), mỗi trang của xuất sẽ được lưu trữ như một tệp riêng biệt. Nếu định dạng xuất là TIFF, xuất sẽ được lưu trữ như một tệp multi-frame.

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

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng tên tệp output input cụ thể và định dạng tài liệu cuối cùng.

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

Parameters

outputFile string

Tên của file output.

inputFiles string [ ]

Tên file input.

saveFormat SaveFormat

Tiếp theoSave Format

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Remarks

Nếu định dạng xuất là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), mỗi trang của xuất sẽ được lưu trữ như một tệp riêng biệt. Nếu định dạng xuất là TIFF, xuất sẽ được lưu trữ như một tệp multi-frame.

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

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng tên tệp output nhập cụ thể và lưu các tùy chọn.

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

Parameters

outputFile string

Tên của file output.

inputFiles string [ ]

Tên file input.

saveOptions SaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Remarks

Nếu định dạng xuất là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), mỗi trang của xuất sẽ được lưu trữ như một tệp riêng biệt. Nếu định dạng xuất là TIFF, xuất sẽ được lưu trữ như một tệp multi-frame.

Merge(Thẻ, string[ ], Tùy chọn LoadOptions[ ], SaveOptions, MergeFormatMode)

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng tên tệp output nhập cụ thể và lưu các tùy chọn.

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

Parameters

outputFile string

Tên của file output.

inputFiles string [ ]

Tên file input.

loadOptions LoadOptions [ ]

Tùy chọn tải cho các tệp nhập.

saveOptions SaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Remarks

Nếu định dạng xuất là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), mỗi trang của xuất sẽ được lưu trữ như một tệp riêng biệt. Nếu định dạng xuất là TIFF, xuất sẽ được lưu trữ như một tệp multi-frame.

Merge(String[ ], Thông tin MergeFormatMode)

Chuyển các tài liệu nhập được đưa vào một tài liệu duy nhất và trả về Aspose.Words.Document ví dụ của tài liệu cuối cùng.

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

Parameters

inputFiles string [ ]

Tên file input.

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Document

Merge(String[ ], Tùy chọn LoadOptions[ ], Thông tin MergeFormatMode)

Chuyển các tài liệu nhập được đưa vào một tài liệu duy nhất và trả về Aspose.Words.Document ví dụ của tài liệu cuối cùng.

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

Parameters

inputFiles string [ ]

Tên file input.

loadOptions LoadOptions [ ]

Tùy chọn tải cho các tệp nhập.

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Document

Merge(Document[ ], Thông tin MergeFormatMode)

Chuyển các tài liệu nhập được đưa vào một tài liệu duy nhất và trả về Aspose.Words.Document ví dụ của tài liệu cuối cùng.

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

Parameters

inputDocuments Document [ ]

Tài liệu nhập khẩu.

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Document

Merge(Stream , Stream[ ], Hướng dẫn SaveFormat)

Chuyển các tài liệu nhập cụ thể vào một tài liệu xuất đơn bằng cách sử dụng các dòng xuất nhập cụ thể và định dạng tài liệu cuối cùng.

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

Parameters

outputStream Stream

dòng sản xuất.

inputStreams Stream [ ]

Các dòng input.

saveFormat SaveFormat

Tiếp theoSave Format

Remarks

Nếu định dạng phát ra là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), chỉ có trang đầu tiên của sản xuất sẽ được lưu vào dòng cụ thể. Nếu định dạng phát ra là TIFF, phát hành sẽ được lưu trữ như một multi-frame TifF duy nhất cho dòng cụ thể.

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

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng các dòng output input cụ thể và lưu các tùy chọn.

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

Parameters

outputStream Stream

dòng sản xuất.

inputStreams Stream [ ]

Các dòng input.

saveOptions SaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Remarks

Nếu định dạng phát ra là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), chỉ có trang đầu tiên của sản xuất sẽ được lưu vào dòng cụ thể. Nếu định dạng phát ra là TIFF, phát hành sẽ được lưu trữ như một multi-frame TifF duy nhất cho dòng cụ thể.

Merge(Stream , Stream[ ], Tùy chọn LoadOptions[ ], SaveOptions, MergeFormatMode)

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng các dòng output input cụ thể và lưu các tùy chọn.

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

Parameters

outputStream Stream

dòng sản xuất.

inputStreams Stream [ ]

Các dòng input.

loadOptions LoadOptions [ ]

Tùy chọn tải cho các tệp nhập.

saveOptions SaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Remarks

Nếu định dạng phát ra là một hình ảnh (BMP, EMF, EPS, GIF, JPEG, PNG, hoặc WebP), chỉ có trang đầu tiên của sản xuất sẽ được lưu vào dòng cụ thể. Nếu định dạng phát ra là TIFF, phát hành sẽ được lưu trữ như một multi-frame TifF duy nhất cho dòng cụ thể.

Merge(Stream[ ], Thông tin MergeFormatMode)

Chuyển các tài liệu nhập được đưa vào một tài liệu duy nhất và trả về Aspose.Words.Document ví dụ của tài liệu cuối cùng.

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

Parameters

inputStreams Stream [ ]

Các dòng input.

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Document

Merge(Stream[ ], Tùy chọn LoadOptions[ ], Thông tin MergeFormatMode)

Chuyển các tài liệu nhập được đưa vào một tài liệu duy nhất và trả về Aspose.Words.Document ví dụ của tài liệu cuối cùng.

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

Parameters

inputStreams Stream [ ]

Các dòng input.

loadOptions LoadOptions [ ]

Tùy chọn tải cho các tệp nhập.

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Document

MergeToImages(String[ ], ImageSaveOptions, MergeFormatMode)

Chuyển các tài liệu nhập cụ thể vào một tài liệu output duy nhất bằng cách sử dụng tên tệp output nhập cụ thể và lưu các tùy chọn.Chuyển phát ra sang hình ảnh.

public static Stream[] MergeToImages(string[] inputFiles, ImageSaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

inputFiles string [ ]

Tên file input.

saveOptions ImageSaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Stream [ ]

MergeToImages(Stream[ ], ImageSaveOptions, MergeFormatMode)

Thay đổi tài liệu nhập cụ thể chảy vào một Tài liệu xuất bản duy nhất bằng cách sử dụng các tùy chọn lưu hình ảnh được chỉ định.Chuyển phát ra sang hình ảnh.

public static Stream[] MergeToImages(Stream[] inputStreams, ImageSaveOptions saveOptions, MergeFormatMode mergeFormatMode)

Parameters

inputStreams Stream [ ]

Các file input stream.

saveOptions ImageSaveOptions

Các tùy chọn tiết kiệm

mergeFormatMode MergeFormatMode

Mô tả cách kết hợp định dạng mà xung đột.

Returns

Stream [ ]

 Tiếng Việt