GithubHelp home page GithubHelp logo

formio / pdf-libs Goto Github PK

View Code? Open in Web Editor NEW
3.0 12.0 1.0 711 KB

The PDF Libraries

License: GNU General Public License v3.0

JavaScript 26.10% CMake 4.13% Shell 0.42% C++ 31.83% Dockerfile 7.77% CSS 23.66% Java 6.10%

pdf-libs's Introduction

Description

pdf-libs is REST-server that wraps extract-formfields and PDFtoHTMLEX utils

Running without docker

  • uncomment variables in .env file
  • change PORT variable if need
  • run node main

Running with docker

  • pull the image: docker pull formio/pdf-libs

  • run a container with name and port you need:

    • docker run -d --name pdf-libs -p 8080:8080 -e PORT=8080 formio/pdf-libs

M1 Mac

  • docker run -d --name pdf-libs -p 8080:8080 -e PORT=8080 --platform linux/amd64 formio/pdf-libs

Environment variables

Variable Description Default value
PDFLIBS_PORT Port, which service will use 8080
HTML_GENERATION_TIMEOUT Primary timeout in milliseconds for html generation 7000
HTML_GENERATION_BACKOFF Backoff timeout in milliseconds for html generation. Its sum with primary timeout will be used for second try after postscript optimisation in case when first try failed 23000

Building

  • docker build -t pdf-libs -f deployment/docker/Dockerfile .

M1 Mac

  • docker build -t pdf-libs -f deployment/docker/Dockerfile --platform linux/amd64 .

Docs

  • Code documentation is at docs/index.html

Licensing

This source code is licenced under the GPL, version 3

License text is available in LICENSE file

pdf-libs's People

Contributors

alexeynikipelau avatar brendanbond avatar lane-formio avatar roflankisel avatar roma-formio avatar travist avatar

Stargazers

 avatar  avatar  avatar

Watchers

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

Forkers

alexeynikipelau

pdf-libs's Issues

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.