Skip to content

Commit 36828e4

Browse files
author
Andrey Safonov
committed
Merge branch 'master' of github.com:andreysaf/nodejs-convert-file-server
2 parents d58ebbc + e0111bb commit 36828e4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## nodejs-convert-file-server
1+
# nodejs-convert-file-server
22
Node.js - Convert from MS Office, images to PDF, get thumbnails for file previews, optimize files for quick rendering.
33

44
Uses Node.js, Express.js and PDFTron Node.js SDK.
55

6-
### Installation
6+
## Installation
77

88
Clone the repo and run
99

@@ -12,37 +12,37 @@ Clone the repo and run
1212
The server will be listening on port 9000. `http://localhost:9000`
1313

1414

15-
### API Calls
15+
## API Calls
1616

17-
#### List file directory
17+
### List file directory
1818

1919
The endpoint returns all files present in the files directory in JSON format.
2020

2121
##### HTTP Request
2222
`GET http://localhost:9000/files`
2323

24-
#### Get file
24+
### Get file
2525

2626
The endpoint returns the requested file.
2727

2828
##### HTTP Request
2929
`GET http://localhost:9000/files/:filename`
3030

31-
#### Get thumbnail
31+
### Get thumbnail
3232

3333
The endpoint returns the thumbnail for the specified file. Uses [PDFTron Node.js API](https://www.pdftron.com/documentation/samples/node/js/PDFDrawTest?platforms=nodejs).
3434

3535
##### HTTP Request
3636
`GET http://localhost:9000/thumbnail/:filename`
3737

38-
#### Convert to PDF
38+
### Convert to PDF
3939

4040
The endpoint converts the file to a PDF. Conversion is possible for the following file formats: DOC, DOCX, PPTX, PPT, XLSX, PNG, JPEG, JPG, TIFF, TXT. Uses [PDFTron Node.js API](https://www.pdftron.com/documentation/samples/node/js/ConvertTest?platforms=nodejs).
4141

4242
##### HTTP Request
4343
`GET http://localhost:9000/convert/:filename`
4444

45-
#### Optimize PDF
45+
### Optimize PDF
4646

4747
The endpoint converts the PDF to an optimized PDF to be used with [PDFTron WebViewer](https://www.pdftron.com/webviewer/demo/). Uses [PDFTron Node.js API](https://www.pdftron.com/api/pdfnet-node/PDFNet.PDFDoc.html#saveViewerOptimized__anchor).
4848

0 commit comments

Comments
 (0)