Ziv-Barber / officegen

Standalone Office Open XML files (Microsoft Office 2007 and later) generator for Word (docx), PowerPoint (pptx) and Excell (xlsx) in javascript. The output is a stream.
MIT License
2.65k stars 471 forks source link

Feature Request: ability to write to multiple columns #325

Closed mikeappell closed 5 years ago

mikeappell commented 5 years ago

OfficeOpenXML allows for specifying multiple columns when creating a document:

http://officeopenxml.com/WPsectionCols.php

This would be very useful for users who might be creating legal documents intended for courts, as those sometimes have very specific formatting requirements (often including columns.)

Also, Word has a "line between" option which creates a vertical divider between columns, which is going to be what most legal documents require.

Ziv-Barber commented 5 years ago

OK. I'll add it for version 0.6.2. The next version (0.6.1) will be more focus in PowerPoint features. Version 0.6.1 will be out in the next days and I can add the Word features next week.

mikeappell commented 5 years ago

That's great to hear – thanks for the update.

Ziv-Barber commented 5 years ago

@mikeappell It's now available in the dev branch and soon it'll be part of officegen 0.6.3 (in the next days).

To use it:

let docx = officegen({
    type: 'docx', // We want to create a Microsoft Word document.
    ... // Extra options goes here.
    columns: 2 // Or you can put here 3, 4, 5, ...       
})