Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Wordsสำหรับ.NET จัดเตรียมเนมสเปซAspose.Words.LowCodeซึ่งทำให้งานประมวลผลเอกสารทั่วไปง่ายขึ้น APIนี้ถูกออกแบบมาสำหรับนักพัฒนาที่ต้องการดำเนินการในระดับสูงเช่นการเปรียบเทียบเอกสาร,การสกัดเนื้อหา,การแปลงภาพ,และการเปลี่ยนข้อความด้วยความพยายามน้อยที่สุด.
LowCodeAPIเหมาะสำหรับสถานการณ์ที่การดำเนินการอย่างรวดเร็วมีความสำคัญมากกว่าการควบคุ ลองมาดูที่LowCodeความสามารถของ Aspose.Wordsสำหรับ.NET.
เนมสเปซAspose.Words.LowCode
รองรับในขณะนี้:
Aspose.Wordsสำหรับ.NET รองรับทั้งคล่องแคล่วและไม่คล่องแคล่วAPIsช่วยให้นักพัฒนาที่จะเลือกรูปแบบที่เหมาะกับการ ลองดูตัวอย่างเพื่อดูว่าทั้งสองประเภทของAPIแตกต่างกันอย่างไร.
ใช้LowCode
เพื่อเปรียบเทียบเอกสารสองWordและบันทึกผลลัพธ์.
ตัวอย่างที่ไม่คล่องแคล่ว:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.docx";
string outputDoc = "Compared.docx";
LowCodeComparer.Compare(firstDoc, secondDoc, outputDoc);
ตัวอย่างเช่น:
string firstDoc = "Document1.docx";
string secondDoc = "Document2.doc";
Comparer.Create()
.From(firstDoc)
.From(secondDoc)
.To("CompareDocuments.1.docx")
.Execute();
คุณยังสามารถส่งผ่านCompareOptions
สำหรับการเปรียบเทียบอย่างละเอียด.
ตัวอย่างที่ไม่คล่องแคล่ว:
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);
ตัวอย่างเช่น:
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();
ใช้LowCode
เพื่อแปลงWordเอกสารเป็นPDF.
ตัวอย่างที่ไม่คล่องแคล่ว:
string inputDoc = "Input.docx";
string outputDoc = "Output.pdf";
Converter.Convert(inputDoc, outputDoc);
ตัวอย่างเช่น:
string inputDoc = "Input.docx";
string outputDoc = "Output.pdf";
Converter.Create()
.From(inputDoc)
.To(outputDoc)
.Execute();
ใช้LowCode
เพื่อแทนที่ข้อความในเอกสารทั้งหมดอย่างรวดเร็ว.
ตัวอย่างที่ไม่คล่องแคล่ว:
string inputDoc = "Input.docx";
string outputDoc = "Output.docx";
string pattern = "Aspose";
string replacement = "Aspose Pro";
Replacer.Replace(inputDoc, outputDoc, pattern, replacement);
ตัวอย่างเช่น:
string inputDoc = "Input.docx";
string outputDoc = "Output.docx";
ReplacerContext replacerContext = new ReplacerContext();
replacerContext.SetReplacement("ReplaceMe", "Replacement");
Replacer.Create(replacerContext)
.From(inputDoc)
.To(outputDoc)
.Execute();
เนมสเปซ Aspose.Words.LowCode ช่วยให้คุณสามารถใช้งานการประมวลผลเอกสารระดับสูงได้อย่างรวดเร็วด้วยรูปแบบคำสั่งที่ชัดเจนและอ่านง่าย ซึ่งมีประโยชน์อย่างยิ่งสำหรับนักพัฒนาที่ต้องการความเร็ว ความเรียบง่าย และโค้ดที่บำรุงรักษาได้เมื่อทำงานกับเอกสาร Word.
ในการสำรวจตัวเลือกขั้นสูงมากขึ้นคุณสามารถรวมLowCodeAPIsกับรูปแบบวัตถุแบบเต็มAspose.Words ดูตัวอย่างเพิ่มเติมLow CodeในAPI documentation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.