Install Font Html2pdf

Make sure that the fonts are available on your computer. (In Windows, choose Complete when you install Acrobat, or choose Custom and select the Asian Language Support option under the View Adobe PDF category. In Mac OS, these fonts are installed automatically.). Dockerfile for NodeJS + generating PDF with phantom-html2pdf - Dockerfile. Dockerfile for NodeJS + generating PDF with phantom-html2pdf - Dockerfile. Skip to content. All gists Back to GitHub. Sign in Sign up. RUN yum install -y urw-fonts # Bundle app source: COPY./app/ /opt/app # Install app dependencies: RUN cd /opt/money.

Latest version

Released:

HTTP server that renders HTML to PDF

Project description

The name says it all. You request a POST with an HTML, and then youwill get the response with the rendered PDF.

HTTP API

Send POST / request with Content-Type: text/html e.g.:

(Note that you have to set Accept: application/pdf header.)

And then you will get a PDF document through its response e.g.:

Available mime types

You can set Accept header to various mime types.

application/pdf
respond a PDF document. this type is the default type.
image/png
respond a PNG image.
image/jpeg
respond a JPEG image.

Getting started using Docker

Due to its non-Python dependencies the easist way to use this is using Docker.The official Docker image exposes 8080 port for HTTP server.

If you need a pong endpoint for health check specify PONG_PATH environmentvariable:

Getting started without Docker

Installation

You can install it using pip:

Note that WeasyPrint has several dependencies that need to be installedusing system package managers e.g. APT, Homebrew. Read the docs.

Running server

Use html2pdfd command:

Or you can use your preferred WSGI server as well (WSGI endpoint ishtml2pdfd:app):

Changelog

Version 1.2.2

Released on January 31, 2017.

  • Fixed a crash during the server prints the first log.

Version 1.2.1

Released on January 31, 2017.

  • Docker image now includes built-in fonts for Chinese/Japanese/Korean.

Version 1.2.0

Released on January 27, 2017.

  • The prerequisite Python version became 3.5 or higher.Python 3.4 or lower are no more supported.
  • Replaced waitress with aiohttp-wsgi.
  • The Docker image now uses Python 3.5 instead of 3.4.

Version 1.1.0

Released on January 26, 2017.

  • Added an option to enable pong endpoint for health check.
    • PONG_PATH environment variable for Docker.
    • --pong-path option for CLI.
  • Fixed a bug that --help option crashed while it’s trying to renderdefault values.

Version 1.0.0

Initial release. Released on January 25, 2017.

Release historyRelease notifications

1.2.2

1.2.1

1.2.0

1.1.0

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for html2pdf-server, version 1.2.2
Filename, sizeFile typePython versionUpload dateHashes
Filename, size html2pdf_server-1.2.2-py3-none-any.whl (9.3 kB) File type Wheel Python version 3.6 Upload dateHashes
Filename, size html2pdf-server-1.2.2.tar.gz (5.1 kB) File type Source Python version None Upload dateHashes
Close

Hashes for html2pdf_server-1.2.2-py3-none-any.whl

Hashes for html2pdf_server-1.2.2-py3-none-any.whl
AlgorithmHash digest
SHA2561b844692841f974ad6e3a51dff3455a97d4a82e62cd917eaf622d76f0dd019ad
MD53310ab69efd1071fa2bd3098e279151c
BLAKE2-256a0026fe669a4a9f407515d99e443f9670578159ccff9d6d522d4809bd13d4423
Close

Hashes for html2pdf-server-1.2.2.tar.gz

Hashes for html2pdf-server-1.2.2.tar.gz
AlgorithmHash digest
SHA256d72f2e42102b7603233bd5d2f8c48477915a0875ede257cd1bc187d421f5dc07
MD5e7f3f18131900bb132e1b4c5fb5ce167
BLAKE2-256eb6753dcf60b7f1cabc4c6045df9fdac70fab7cabec12969ba61a6a72021c959

Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP 5.4 to 7.2.

It allows the conversion of valid HTML in PDF format, to generate documents like invoices, documentation, ..

You have to write a code of HTML for Html2Pdf, and not try to convert directly an already existing html page.

Specific tags have been implemented, to adapt the html standard to a PDF usage.

You must use Composer to install this library.

But unfortunate for the detail of the face of Pro Evolution Soccer 2015 players in the game only includes some well-known players are similar to the original. Cracked steam 2015 no survey no password code.

It uses TCPDF for the PDF part.

Requirements

Html2Pdf works with PHP >5.4 and Composer.

You will also need at least the following php extensions:

  • gd
  • mbstring

Documentation

You will find the install documentation here.

You will find all the documentation here.

You will find lots of examples here.

Donate

You can support this project by making a donation.

Change log

See the ./CHANGELOG.md file.

Help & Support

For questions and bug reports, please use the GitHub issues page.

License

This program is distributed under the OSL License. For more information see the ./LICENSE.md file.

Copyright 2008-2018 by Laurent Minguet