Skip to content

Commit b026dc8

Browse files
small modification
1 parent d5c6cb6 commit b026dc8

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@ A simple and lightweight npm package for converting Word documents (docx) to PDF
88
- Easy-to-use API: Convert docx files to PDF with just a few lines of code.
99
- Batch conversion: Convert entire directories of docx files to PDF.
1010

11-
<!-- ## Installation
11+
## Installation
1212

1313
Install the package via npm:
1414

1515
```bash
16-
npm install docx-to-pdf-converter -->
16+
npm install docx-to-pdf-converter
17+
```
18+
19+
## Usage
20+
21+
```javascript
22+
const topdf = require('docx2pdf-converter')
23+
24+
const inputPath = './report.docx';
25+
26+
topdf.convert(inputPath,'output.pdf')
27+
```
1728

1829

report.docx

-201 KB
Binary file not shown.

0 commit comments

Comments
 (0)