Modern JavaScript perpustakaan ngijini Node.js via .NET gawe kanggo nggabungaken PNG menyang siji DOCX karo sawetara garis saka kode. Mesin konversi PNG nganalisa tata letak lan struktur PNG konten gabungan menyang DOCX format.
Gunakake JavaScript kanggo ngowahi PNG dadi DOCX kanthi keluwesan lan kacepetan maksimal. Jalanake demo online lan priksa DOCX paling dhuwur ing browser. PNG Conversion API ndhukung akeh opsi migunani.
Kanggo ngowahi sawetara PNG menyang DOCX mung nggunakake JavaScript sing nangani kabeh rincian tingkat rendah.
Ngonversi pirang-pirang PNG lan simpen asil minangka file siji DOCX. Yen sampeyan ngembangake kode nggunakake JavaScript, iki bakal luwih gampang tinimbang sing katon. Deleng JavaScript sing ngulang dokumen lan ngowahi dadi DOCX format:
npm install @aspose/words
Nyalin
const aw = require('@aspose/words');
var fileNames = [ "Input1.png", "Input2.png" ]
var doc = new aw.Document()
var builder = new aw.DocumentBuilder(doc)
fileNames.forEach(fileName => {
builder.insertImage(fileName)
// Masang break paragraf supaya gambar tumpang tindih.
builder.writeln()
});
doc.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 PNG menyang akeh format file liyane: