mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
50 lines
1.5 KiB
Markdown
50 lines
1.5 KiB
Markdown
wkhtmltopdf
|
|
================
|
|
|
|
This repository contains the static compiled binaries from the [wkhtmltopdf project](http://wkhtmltopdf.org/).
|
|
More about the functionality of wkhtmltopdf and wkthmltoimage can be found there.
|
|
|
|
Binaries for __Microsoft Windows__, also installable with composer, can be found here: [github.com/wemersonjanuario/wkhtmltopdf-windows](https://github.com/wemersonjanuario/wkhtmltopdf-windows)
|
|
|
|
Binaries for __CentOS 7__, also installable with composer, can be found here: [github.com/rvanlaak/wkhtmltopdf-amd64-centos7](https://github.com/rvanlaak/wkhtmltopdf-amd64-centos7)
|
|
|
|
## Installation
|
|
|
|
_Hint_:
|
|
The version of the binary is equal to the git tag.
|
|
To install the latest version, use '0.12.4'.
|
|
|
|
### Packagist
|
|
|
|
This package can be found on [Packagist](http://packagist.org) and installed with [Composer](https://getcomposer.org/).
|
|
|
|
Require the package for _i386_ with:
|
|
|
|
php composer.phar require h4cc/wkhtmltopdf-i386 "0.12.4"
|
|
|
|
And for _amd64_ with:
|
|
|
|
php composer.phar require h4cc/wkhtmltopdf-amd64 "0.12.4"
|
|
|
|
The binary will then be located at:
|
|
|
|
vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386
|
|
|
|
Also a symlink will be created in your configured bin/ folder, for example:
|
|
|
|
vendor/bin/wkhtmltopdf-i386
|
|
|
|
### Usage
|
|
|
|
You can use the path constant to easily locate the binary in the PHP codebase:
|
|
|
|
``` php
|
|
$path = \h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH;
|
|
```
|
|
|
|
For realpath use following script
|
|
|
|
``` php
|
|
$realpath = realpath(\h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH);
|
|
```
|