Perpustakaan JavaScript ngidini pangembang Node.js via .NET bisa ngowahi file Word kanthi gampang. Mesin konversi Word nganalisa tata letak lan gaya Word asli, banjur ngekspor konten gabungan menyang format sing dibutuhake.
Konversi Word bisa uga angel, kajaba sampeyan duwe alat profesional kanggo nindakake tugas kasebut. Gunakake JavaScript kanggo ngowahi file Word kanthi keluwesan lan kacepetan maksimal. Jalanake demo langsung online lan priksa kualitas konversi Word sing paling dhuwur ing browser. Word Conversion API ndhukung akeh opsi migunani.
Ningkatake kapabilitas format Word nganggo Aspose.Words kanggo Node.js via .NET. Iki minangka cara sing gampang kanggo nggabungake file Word karo perpustakaan JavaScript sing nangani kabeh rincian tingkat rendah.
Gabung Word lan simpen asil minangka file siji. Yen sampeyan ngembangake kode ing JavaScript, iki bakal luwih gampang tinimbang sing katon. Deleng conto JavaScript sing ngulang dokumen Word lan gabungke:
npm install @aspose/words
Nyalin
const aw = require('@aspose/words');
var fileNames = [ "Input1.docx", "Input2.docx" ]
var output = new aw.Document()
// Mbusak kabeh content saka dokumen tujuan sadurunge nambah.
output.removeAllChildren()
fileNames.forEach(fileName => {
var input = new aw.Document(fileName);
// Tambahake dokumen sumber menyang pungkasan dokumen tujuan.
output.appendDocument(input, aw.ImportFormatMode.KeepSourceFormatting);
});
output.save("Output.docx");
We host our Node.js via .Net packages in NPM repositories. Please follow the step-by-step instructions on how to install "Aspose.Words for Node.js via .NET" to your developer environment.
This package is compatible with Node.js 14.17.0 or higher.
Sampeyan bisa nggabungake Word menyang akeh format file liyane: