We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5c6cb6 commit b026dc8Copy full SHA for b026dc8
2 files changed
README.md
@@ -8,11 +8,22 @@ A simple and lightweight npm package for converting Word documents (docx) to PDF
8
- Easy-to-use API: Convert docx files to PDF with just a few lines of code.
9
- Batch conversion: Convert entire directories of docx files to PDF.
10
11
-<!-- ## Installation
+## Installation
12
13
Install the package via npm:
14
15
```bash
16
-npm install docx-to-pdf-converter -->
+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
28
29
report.docx
-201 KB
0 commit comments