https://github.com/koddsson/preview
A stupidly simple REST service that takes MS Word documents (docx) and gives you back PDF
https://github.com/koddsson/preview
Last synced: over 1 year ago
JSON representation
A stupidly simple REST service that takes MS Word documents (docx) and gives you back PDF
- Host: GitHub
- URL: https://github.com/koddsson/preview
- Owner: koddsson
- Created: 2014-06-09T18:45:35.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-09T19:53:49.000Z (about 12 years ago)
- Last Synced: 2025-01-08T00:57:46.932Z (over 1 year ago)
- Language: Java
- Size: 137 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Convert docx files to PDF via REST
==================================
It's all in the title ;)
How do I run this?
------------------
After checking out/forking the repository it should be as simple as:
```
gradle wrapper
./gradlew dependencies build run -DmainClass=poi.TestCon
```
And then you can send `HTTP PUT` requests containing documents to
`localhost:8182` and the service will respond with a url to the newly created
PDF document.
Here's a example
```
curl -F name=test -F filedata=@HelloWord.docx http://localhost:8182 -XPUT
```
### Docker
```
docker build -t poi .
docker run -t poi
```
Contributing
------------
Feel free to go bananas. Pull requests, issues, screaming loudly at the computer
are all appreciated. Also I'm [@koddsson](https://twitter.com/koddsson) on twitter so feel free to holla at me
there.