Coder Social home page Coder Social logo

docker-pdf2htmlex's Introduction

pdf2htmlEX in Docker

A python web service that runs pdf2htmlEX on a URL, based on the pdf2htmlEX Debian package.

Usage:

$ docker run -ti -p 5000:5000 ukwa/pdf2htmlex

This runs an instance on port 5000 with a terminal connection so you can Ctrl-C to stop it.

Once running, you can use it as follows. To convert a whole PDF:

$ curl http://localhost:5000/convert?url=http://stlab.adobe.com/wiki/images/d/d3/Test.pdf

There are also optional parameters: first_page (defaults to 1) and last_page

TODO

  • Suggest we switch to nigit and reduce the code we have to use.

Change Log

  • 1.0.1:
    • Switch to gunicorn following instability in production.

docker-pdf2htmlex's People

Contributors

anjackson avatar ldbiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-pdf2htmlex's Issues

Docker build fails in automated workflow

Noticed during changes for ukwa/ukwa-services#77

Log:

Dockerfile:10

9 | # update debian source list
10 | >>> RUN
11 | >>> apt-get -qqy update &&
12 | >>> apt-get -qqy install pdf2htmlex &&
13 | >>> apt-get -qqy install python-dev python-flask gunicorn python-pip &&
14 | >>> rm -rf /var/lib/apt/lists/*
15 |

ERROR: failed to solve: process "/bin/sh -c apt-get -qqy update && apt-get -qqy install pdf2htmlex && apt-get -qqy install python-dev python-flask gunicorn python-pip && rm -rf /var/lib/apt/lists/" did not complete successfully: exit code: 100
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c apt-get -qqy update && apt-get -qqy install pdf2htmlex && apt-get -qqy install python-dev python-flask gunicorn python-pip && rm -rf /var/lib/apt/lists/
" did not complete successfully: exit code: 100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.