muRenderer is a small REST service for rendering pdfs and build around mupdf.
Building muRenderer is a two step process:
1.) build mupdf 2.) build muRenderer itself
To build mupdf for Linux and Windows on Debian/Ubuntu install the following packages:
sudo apt-get install build-essential gcc-mingw-w64
Fetch the mupdf source code with:
git submodule update --init --recursive
Call the build script:
./build.sh
The output are two executables:
renderservice.exe
for Windowsrenderservice
for Linux
Use ./renderservice -h
to see all available options.
http://host:port/renderservice/health
http://host:port/renderservice/{documentId}/{pageNr}/pageinfo
http://host:port/renderservice/{documentId}/{pageNr}/numpages
http://host:port/renderservice/{documentId}/{pageNr}?z={zoomfactor}
http://host:port/renderservice/{documentId}/{pageNr}?w={width}&h={height}
http://host:port/renderservice/{documentId}/{pageNr}
http://host:port/renderservice/{documentId}
Contributions are very welcome.
- Fork the project
- Create a feature branch:
git checkout -b my-new-feature
- Commit changes:
git commit -am 'Add my feature'
- Push to the branch:
git push -u origin my-new-feature
- Submit a pull request