bidi+rtl demo

This commit is contained in:
amitm02
2018-07-26 14:49:21 +03:00
parent 0ea79775c5
commit 40ac08836d

14
demo/demo22.js Normal file
View File

@ -0,0 +1,14 @@
const docx = require('../build');
var doc = new docx.Document();
var textRun = new docx.TextRun("שלום עולם").rtl();
var paragraph = new docx.Paragraph().bidi();
paragraph.addRun(textRun);
doc.addParagraph(paragraph);
var exporter = new docx.LocalPacker(doc);
exporter.pack('My Document');
console.log('Document created successfully at project root!');