aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcms <cms@beatworm.co.uk>2016-10-12 18:05:00 (GMT)
committercms <cms@beatworm.co.uk>2016-10-12 18:05:00 (GMT)
commitfba9b8449364502ee5692df1ddefafaee2c20dad (patch)
tree804f11a9c273dfed95d670334f41580935bc9fad
parentd9c17c665a38c1980b0d6b653a5812e845f91bc6 (diff)
downloadhydra-fba9b8449364502ee5692df1ddefafaee2c20dad.zip
hydra-fba9b8449364502ee5692df1ddefafaee2c20dad.tar.gz
hydra-fba9b8449364502ee5692df1ddefafaee2c20dad.tar.bz2
Adds a README
basic description, build instructions
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fc8b710
--- /dev/null
+++ b/README.md
@@ -0,0 +1,23 @@
+#Hail Hydra
+
+## pdf mangling in a web service
+
+Chromium seems to have a pretty good cross-platform pdf renderer. It's based on the proprietary Foxit PDF library, which is well regarded. Google opensourced their fork of it eventually. It's called pdfium. This code embeds pdfium in a webserver and uses it to transform and rasterise pdfs
+
+### Requirements and dependencies
+
+* pdfium , get it [from here](https://pdfium.googlesource.com/pdfium/). It's quite a pain to build, and a massive pain to link.
+* [Poco C++ framework](https://pocoproject.org). I used the version in the Ubuntu 16.04
+* libjpeg-turbo8
+* gcc/g++
+* GNU make
+
+### build it
+
+There's a Makefile. You need to point PDFIUM_ROOT at wherever you've built pdfium. The makefile expects you to build products into a directory called 'out' in the pdfium root. If you used something else as a build directory, you'll need to edit that
+
+### run it
+
+The binary is called hydra. It listens on http://localhost:2225 forever. It serves a quarter sized version of a file called test.pdf in the directory it is running in as a jpeg.
+
+