GithubHelp home page GithubHelp logo

knobel-dk / pdf-export-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bryntum/pdf-export-server

0.0 0.0 0.0 26.69 MB

The server producing the exported PDF versions of various Bryntum UI components

License: MIT License

JavaScript 20.18% HTML 79.10% Dockerfile 0.72%

pdf-export-server's Introduction

PDF export server

This repository contains sources for a server which builds PDF and PNG files out of HTML fragments. Server is designed to work with Bryntum PDF Export feature. See compatibility table between Export server and other Bryntum products in this table.

Live demos available here:

Features

  • Uses headless chromium browser.
  • Runnable as NodeJS instance.
  • Docker container available at Docker Hub
  • Written in JavaScript and fully adaptable.
  • Can be used as standalone service or as an intermediary between your (C#, Java, PHP) frontend and backend.

Getting started

Using NodeJS

  1. Check out this repository
~$ git clone [email protected]:bryntum/pdf-export-server.git
~$ cd pdf-export-server 
  1. Install packages
pdf-export-server$ npm i
  1. Start the server
pdf-export-server$ npm run start
Access-Control-Allow-Origin: *
Http server started on port 8080

Multiple configuration options are available as you can see in the configuration guide.

Using image from Docker Hub

For your convenience we have pre-built container available on Docker Hub.

  1. Pull it
$ docker pull bryntum/pdf-export-server
  1. Create docker-compose.yml and configure image/port forwarding
version: "3.9"
services:
  web:
    image: "bryntum/pdf-export-server:1.0.1"
    ports:
      - "8080:8080"
  1. Start container
$ docker compose -f docker-compose.yml up

Links

FAQ

Exported PDF/PNG doesn't look correct

Most likely server couldn't get access to the resources. See architecture guide for detailed information, resources section for short summary and troubleshooting guide for debugging tips.

PDF/PNG file is not generated

Most likely there is a problem on the server, see troubleshooting guide for help.

Cannot export using HTTPS

You can see errors like NET::ERR_CERT_AUTHORITY_INVALID or CORS exception (in Firefox). See Make browser to accept self-signed certificate section for more info.

pdf-export-server's People

Contributors

bmblb avatar matsbryntse avatar

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.