oc

office-converter

A NPM Utility program to convert office documents (documents/excel/presentations) into PDF/HTML

Showing:

Popularity

Downloads/wk

154

GitHub Stars

34

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

#office-converter

A node module to convert office documents into either PDF or HTML.

It requires requires unoconv to be installed and in the PATH. It can convert any office document (doc/docx/xls/xlsx/ppt/pptx) which can be opened in Open Office [Or Libre Office] to either PDF or HTML.

##Usage

var converter = require('office-converter')();
  converter.generatePdf('input/test.xls', function(err, result) {
    // Process result if no error
    if (result.status === 0) {
      console.log('Output File located at ' + result.outputFile);
    }
  });
  converter.generateHtml('input/test.docx', function(err, result) {
    // Process result if no error
    if (result.status === 0) {
      console.log('Output File located at ' + result.outputFile);
    }
  });
  

##How to test?

There are test cases inside tests folder. You can test using npm test to test the package. Tests result in test.pdf inside input folder.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial