Coder Social home page Coder Social logo

djvu2pdf-docker's Introduction

Containerized DjVu2PDF

A convenient way to convert files from DjVu to PDF format while preserving the text layer.

The solution utilizes djvu2pdf script, which, in turn, depends on other libraries like pdfbeads, djvulibre-bin, etc.

  • All dependencies are packed into docker image (amd64).
  • Some libraries are installed from source in order to utilize specific features: JBIG2 and JPEG 2000 (JP2) compression support.
  • JP2 configuration in pdfbeads is modified.

Run details

docker run --rm -u $(id -u):$(id -g) -v $(pwd):/opt/work ilyabystrov/djvu2pdf filename.djvu filename.pdf
  • --rm option - removing container after execution
  • -u $(id -u):$(id -g) - run process with the same UID and GID
  • -v $(pwd):/opt/work - (required) bind mounting of the current directory to the working directory in the container

Alias

Put the following line into ~/.bashrc or a similar configuration file:

alias djvu2pdf='docker run --rm -u $(id -u):$(id -g) -v $(pwd):/opt/work ilyabystrov/djvu2pdf'

It will allow using the short command

djvu2pdf filename.djvu filename.pdf

djvu2pdf-docker's People

Contributors

ilya-bystrov avatar

Stargazers

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

Watchers

 avatar

djvu2pdf-docker's Issues

Please clarify the license

This package is wonderful, thank you for saving me time in installation!

Could you please clarify the license for this package to acknowledge the hard work of the creator of djvu2pdf (add information about MIT) and add your license (I also recommend MIT)?

Just copy the file from the original repository and add your copyright notice below (or above) the djvu2pdf creator's note.

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.