An open API service indexing awesome lists of open source software.

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

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.