Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Headless Chrome print to pdf package for Neos and Flow.

Caution: This package is in development!

Installation

Just run:

composer require steinbauerit/neos-headlesschrome

Install chromium on your machine

Here, for example, alpine linux

apk update
apk upgrade
apk add chromium

Determine the binary location of your Chrome installation

which chromium-browser

Configuration

SteinbauerIT:
  Neos:
    HeadlessChrome:
      chromeExecutable: '/usr/bin/chromium-browser'
      defaultAttributes:
        - 'disable-gpu'
        - 'no-margins'
        - 'no-sandbox'

Usage

use SteinbauerIT\Neos\HeadlessChrome\Print2Pdf;

$print2Pdf = new Print2Pdf();
$print2Pdf->setSource($source);
$print2Pdf->setTargetDirectory($targetPath);
$print2Pdf->setAttributes(
    ['foo', 'bar']
);
$result = $print2Pdf->execute(); // Path to the printed PDF

Author

About

A Neos Flow wrapper package to use Headless Chrome print to pdf with Flow.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages