Class Splitter
Tên không gian: Aspose.Words.LowCode Tổng hợp: Aspose.Words.dll (25.4.0)
Nó cung cấp các phương pháp được thiết kế để chia các tài liệu thành các phần sử dụng các tiêu chí khác nhau.
public class Splitter : Processor
Inheritance
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
Methods
Create(SplitterContext)
Tạo một ví dụ mới của bộ xử lý phân chia.
public static Splitter Create(SplitterContext context)
Parameters
context
SplitterContext
Returns
ExecuteCore()
protected override void ExecuteCore()
ExtractPages(string, string, int, int)
Thu thập một phạm vi trang cụ thể từ một tệp tài liệu và lưu các trang thu thậpđịnh dạng tệp output được xác định bằng cách mở rộng tên tệp output.
public static void ExtractPages(string inputFileName, string outputFileName, int startPageIndex, int pageCount)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
startPageIndex
int
Chỉ số dựa trên zero của trang đầu tiên để lấy.
pageCount
int
Số lượng các trang sẽ được rút ra.
ExtractPages(string, string, SaveFormat, int, int)
Thu thập một phạm vi trang cụ thể từ một tệp tài liệu và lưu các trang thu thậpđến một tệp mới bằng cách sử dụng định dạng lưu được chỉ định.
public static void ExtractPages(string inputFileName, string outputFileName, SaveFormat saveFormat, int startPageIndex, int pageCount)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
saveFormat
SaveFormat
Tiếp theoSave Format
startPageIndex
int
Chỉ số dựa trên zero của trang đầu tiên để lấy.
pageCount
int
Số lượng các trang sẽ được rút ra.
ExtractPages(string, string, SaveOptions, int, int)
Thu thập một phạm vi trang cụ thể từ một tệp tài liệu và lưu các trang thu thậpđến một tệp mới bằng cách sử dụng định dạng lưu được chỉ định.
public static void ExtractPages(string inputFileName, string outputFileName, SaveOptions saveOptions, int startPageIndex, int pageCount)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
startPageIndex
int
Chỉ số dựa trên zero của trang đầu tiên để lấy.
pageCount
int
Số lượng các trang sẽ được rút ra.
ExtractPages(Stream, Stream, SaveFormat, int, int)
Thu thập một phạm vi trang cụ thể từ một dòng tài liệu và lưu các trang được thu thậpđến một dòng output bằng cách sử dụng định dạng tiết kiệm được chỉ định.
public static void ExtractPages(Stream inputStream, Stream outputStream, SaveFormat saveFormat, int startPageIndex, int pageCount)
Parameters
inputStream
Stream
dòng input.
outputStream
Stream
dòng sản xuất.
saveFormat
SaveFormat
Tiếp theoSave Format
startPageIndex
int
Chỉ số dựa trên zero của trang đầu tiên để lấy.
pageCount
int
Số lượng các trang sẽ được rút ra.
ExtractPages(Stream, Stream, SaveOptions, int, int)
Thu thập một phạm vi trang cụ thể từ một dòng tài liệu và lưu các trang được thu thậpđến một dòng output bằng cách sử dụng định dạng tiết kiệm được chỉ định.
public static void ExtractPages(Stream inputStream, Stream outputStream, SaveOptions saveOptions, int startPageIndex, int pageCount)
Parameters
inputStream
Stream
dòng input.
outputStream
Stream
dòng sản xuất.
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
startPageIndex
int
Chỉ số dựa trên zero của trang đầu tiên để lấy.
pageCount
int
Số lượng các trang sẽ được rút ra.
RemoveBlankPages(Thẻ, string)
Xóa các trang trống khỏi tài liệu và tiết kiệm kết quả.Gửi lại một danh sách các số trang đã bị xóa.
public static List<int> RemoveBlankPages(string inputFileName, string outputFileName)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
Returns
Danh sách các số trang đã được coi là trắng và bị xóa.
RemoveBlankPages(string, string, SaveFormat)
Xóa các trang trống khỏi tài liệu và lưu kết quả trong định dạng cụ thể.Gửi lại danh sách các số trang đã được xóa.
public static List<int> RemoveBlankPages(string inputFileName, string outputFileName, SaveFormat saveFormat)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
saveFormat
SaveFormat
Tiếp theoSave Format
Returns
Danh sách các số trang đã được coi là trắng và bị xóa.
RemoveBlankPages(string, string, SaveOptions)
Xóa các trang trống khỏi tài liệu và lưu kết quả trong định dạng cụ thể.Gửi lại danh sách các số trang đã được xóa.
public static List<int> RemoveBlankPages(string inputFileName, string outputFileName, SaveOptions saveOptions)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên của file output.
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
Returns
Danh sách các số trang đã được coi là trắng và bị xóa.
RemoveBlankPages(Stream, Stream và SaveFormat)
Xóa các trang trắng từ một tài liệu được cung cấp trong dòng nhập và lưu tài liệu được cập nhậtđến một dòng output trong định dạng lưu cụ thể. Trở lại một danh sách các số trang đã bị xóa.
public static List<int> RemoveBlankPages(Stream inputStream, Stream outputStream, SaveFormat saveFormat)
Parameters
inputStream
Stream
dòng input.
outputStream
Stream
dòng sản xuất.
saveFormat
SaveFormat
Tiếp theoSave Format
Returns
Danh sách các số trang đã được coi là trắng và bị xóa.
RemoveBlankPages(Stream, Stream, SaveOptions)
Xóa các trang trắng từ một tài liệu được cung cấp trong dòng nhập và lưu tài liệu được cập nhậtđến một dòng output trong định dạng lưu cụ thể. Trở lại một danh sách các số trang đã bị xóa.
public static List<int> RemoveBlankPages(Stream inputStream, Stream outputStream, SaveOptions saveOptions)
Parameters
inputStream
Stream
dòng input.
outputStream
Stream
dòng sản xuất.
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
Returns
Danh sách các số trang đã được coi là trắng và bị xóa.
Split(string, string, SplitOptions)
Chia một tài liệu thành nhiều phần dựa trên các tùy chọn chia được chỉ định và tiết kiệmđịnh dạng tệp output được xác định bằng cách mở rộng tên tệp output.
public static void Split(string inputFileName, string outputFileName, SplitOptions options)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên tệp output được sử dụng để tạo tên tệp cho các bộ phận tài liệu bằng cách sử dụng quy tắc “outputFile_partIndex.extension”
options
SplitOptions
Tài liệu phân chia tùy chọn.
Split(string, string, SaveFormat, SplitOptions)
Chia một tài liệu thành nhiều phần dựa trên các tùy chọn chia được chỉ định và tiết kiệmcác phần kết quả đến các tập tin trong định dạng lưu được chỉ định.
public static void Split(string inputFileName, string outputFileName, SaveFormat saveFormat, SplitOptions options)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên tệp output được sử dụng để tạo tên tệp cho các bộ phận tài liệu bằng cách sử dụng quy tắc “outputFile_partIndex.extension”
saveFormat
SaveFormat
Tiếp theoSave Format
options
SplitOptions
Tài liệu phân chia tùy chọn.
Split(string, string, SaveOptions, SplitOptions)
Chia một tài liệu thành nhiều phần dựa trên các tùy chọn chia được chỉ định và tiết kiệmcác phần kết quả đến các tập tin trong định dạng lưu được chỉ định.
public static void Split(string inputFileName, string outputFileName, SaveOptions saveOptions, SplitOptions options)
Parameters
inputFileName
string
Tên file input.
outputFileName
string
Tên tệp output được sử dụng để tạo tên tệp cho các bộ phận tài liệu bằng cách sử dụng quy tắc “outputFile_partIndex.extension”
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
options
SplitOptions
Tài liệu phân chia tùy chọn.
Split(Stream, SaveFormat, SplitOptions)
Chia một tài liệu từ một dòng nhập vào nhiều phần dựa trên các tùy chọn chia được chỉ định vàtrả về các bộ phận kết quả như một loạt các dòng trong định dạng tiết kiệm được chỉ định.
public static Stream[] Split(Stream inputStream, SaveFormat saveFormat, SplitOptions options)
Parameters
inputStream
Stream
dòng input.
saveFormat
SaveFormat
Tiếp theoSave Format
options
SplitOptions
Tài liệu phân chia tùy chọn.
Returns
Stream [ ]
Split(Stream, SaveOptions, SplitOptions)
Chia một tài liệu từ một dòng nhập vào nhiều phần dựa trên các tùy chọn chia được chỉ định vàtrả về các bộ phận kết quả như một loạt các dòng trong định dạng tiết kiệm được chỉ định.
public static Stream[] Split(Stream inputStream, SaveOptions saveOptions, SplitOptions options)
Parameters
inputStream
Stream
dòng input.
saveOptions
SaveOptions
Các tùy chọn tiết kiệm
options
SplitOptions
Tài liệu phân chia tùy chọn.
Returns
Stream [ ]