Skip to content

Commit d54be4c

Browse files
author
Andrey Safonov
authored
Update README.md
1 parent befc553 commit d54be4c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,35 @@ The endpoint returns all files present in the files directory in JSON format.
1919
##### HTTP Request
2020
`GET http://localhost:9000/files`
2121

22+
#### Get file
23+
24+
The endpoint returns the requested file.
25+
26+
##### HTTP Request
27+
`GET http://localhost:9000/files/:filename`
28+
29+
#### Get thumbnail
30+
31+
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).
32+
33+
##### HTTP Request
34+
`GET http://localhost:9000/thumbnail/:filename`
35+
36+
#### Convert to PDF
37+
38+
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).
39+
40+
##### HTTP Request
41+
`GET http://localhost:9000/convert/:filename`
42+
43+
#### Optimize to PDF
44+
45+
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).
46+
47+
##### HTTP Request
48+
`GET http://localhost:9000/convert/:filename`
49+
50+
51+
52+
2253

0 commit comments

Comments
 (0)