Modern JavaScript perpustakaan ngijini Node.js via .NET gawe kanggo nggabungaken DOCX menyang siji PDF karo sawetara garis saka kode. Mesin konversi DOCX nganalisa tata letak lan struktur DOCX konten gabungan menyang PDF format.
Gunakake JavaScript kanggo ngowahi DOCX dadi PDF kanthi keluwesan lan kacepetan maksimal. Jalanake demo online lan priksa PDF paling dhuwur ing browser. DOCX Conversion API ndhukung akeh opsi migunani.
Kanggo ngowahi sawetara DOCX menyang PDF mung nggunakake JavaScript sing nangani kabeh rincian tingkat rendah.
Ngonversi pirang-pirang DOCX lan simpen asil minangka file siji PDF. Yen sampeyan ngembangake kode nggunakake JavaScript, iki bakal luwih gampang tinimbang sing katon. Deleng JavaScript sing ngulang dokumen lan ngowahi dadi PDF format:
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.pdf");
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 DOCX menyang akeh format file liyane: