Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Words cho .NET cung cấp không gian tên Aspose.Words.LowCode, giúp đơn giản hóa các tác vụ xử lý tài liệu phổ biến. API này được thiết kế cho các nhà phát triển muốn thực hiện các hoạt động cấp cao như so sánh tài liệu, trích xuất nội dung, chuyển đổi hình ảnh và thay thế văn bản với nỗ lực tối thiểu.
LowCode API là lý tưởng cho các kịch bản mà việc thực hiện nhanh chóng quan trọng hơn kiểm soát hạt mịn. Chúng ta hãy xem xét kỹ hơn các khả năng LowCode của Aspose.Words cho .NET.
Không gian tên Aspose.Words.LowCode
hiện hỗ trợ:
Aspose.Words cho .NET hỗ trợ Cả Thông thạo và Không Thông thạo APIs, cho phép các nhà phát triển chọn kiểu phù hợp nhất với sở thích mã hóa và nhu cầu dự án của họ. Chúng ta hãy xem xét một số ví dụ để xem hai loại API này khác nhau như thế nào.
Sử dụng LowCode
để so sánh hai tài liệu Word và lưu kết quả.
ví dụ api không thông thạo:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.docx";
string outputDoc = "Compared.docx";
LowCodeComparer.Compare(firstDoc, secondDoc, outputDoc);
ví dụ api thông thạo:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.doc";
Comparer.Create()
.From(firstDoc)
.From(secondDoc)
.To("CompareDocuments.1.docx")
.Execute();
Bạn cũng có thể vượt qua CompareOptions
để so sánh tinh chỉnh.
ví dụ api không thông thạo:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.docx";
string outputDoc = "Compared.docx";
CompareOptions options = new CompareOptions
{
IgnoreFormatting = true,
IgnoreCaseChanges = true
};
LowCodeComparer.Compare(firstDoc, secondDoc, outputDoc, options);
ví dụ api thông thạo:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.doc";
ComparerContext comparerContext = new ComparerContext();
comparerContext.CompareOptions.IgnoreCaseChanges = true;
Comparer.Create(comparerContext)
.From(firstDoc)
.From(secondDoc)
.To("CompareDocuments.3.docx")
.Execute();
Sử dụng LowCode
để chuyển đổi tài liệu Word thành PDF.
ví dụ api không thông thạo:
string inputDoc = "Input.docx";
string outputDoc = "Output.pdf";
Converter.Convert(inputDoc, outputDoc);
ví dụ api thông thạo:
string inputDoc = "Input.docx";
string outputDoc = "Output.pdf";
Converter.Create()
.From(inputDoc)
.To(outputDoc)
.Execute();
Sử dụng LowCode
để nhanh chóng thay thế văn bản trên toàn bộ tài liệu.
ví dụ api không thông thạo:
string inputDoc = "Input.docx";
string outputDoc = "Output.docx";
string pattern = "Aspose";
string replacement = "Aspose Pro";
Replacer.Replace(inputDoc, outputDoc, pattern, replacement);
ví dụ api thông thạo:
string inputDoc = "Input.docx";
string outputDoc = "Output.docx";
ReplacerContext replacerContext = new ReplacerContext();
replacerContext.SetReplacement("ReplaceMe", "Replacement");
Replacer.Create(replacerContext)
.From(inputDoc)
.To(outputDoc)
.Execute();
Không gian tên Aspose.Words.LowCode giúp bạn thực hiện các tác vụ xử lý tài liệu cấp cao một cách nhanh chóng với cú pháp sạch, có thể đọc được. Nó đặc biệt hữu ích cho các nhà phát triển cần tốc độ, đơn giản và mã có thể bảo trì khi làm việc với các tài liệu Word.
Để khám phá các tùy chọn nâng cao hơn, bạn luôn có thể kết hợp LowCode APIs với mô hình đối tượng Aspose.Words đầy đủ. Xem thêm Low Code ví dụ trong API documentation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.