https://github.com/maccyber/azure-function-convert-pdf
https://github.com/maccyber/azure-function-convert-pdf
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maccyber/azure-function-convert-pdf
- Owner: maccyber
- License: mit
- Created: 2019-02-01T21:58:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-07T23:54:44.000Z (about 1 month ago)
- Last Synced: 2025-06-08T00:29:28.914Z (about 1 month ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# azure-function-convert-pdf
Azure function for converting file to pdf
## Development
Install all tools needed for [local development](https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-local).
Clone the repo. Install dependencies.
Run in docker
```
docker build -t azure-function-convert-pdf .
docker run -it -p 8080:80 azure-function-convert-pdf
```Start server
```
$ func start
```POST testdata (osx)
```
$ curl http://localhost:7071/api/ConvertToPdf -d $(base64 test/data/test.docx)
```POST testdata (linux)
```
$ curl http://localhost:7071/api/ConvertToPdf -d $(base64 -w0 test/data/test.docx)
```# License
[MIT](LICENSE)