Skip to content
PdfMerger for Nette Framework and Ghost Script.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
composer.json
license.md

README.md

PdfMerger

PdfMerger for Nette Framework and Ghost Script.

Installation

The best way to install AlesWita/PdfMerger is using Composer:

$ composer require aleswita/pdfmerger:dev-master

Usage

Configuration

extensions:
  pdfmerger: AlesWita\PdfMergerExtension
	
pdfmerger:
  program: "\"C:\\Program Files\\gs\\gs9.19\\bin\\gswin64c.exe\""

Presenter

use AlesWita;

final class HomePresenter extends BasePresenter
{
  /** @var AlesWita\PdfMerger @inject */
  public $pdfMerger;

  ...
  
  public function handleMergePdf(array $files): void {
    foreach ($files as $file) {
      $this->pdfMerger->addPdf($file);
    }
  
    $this->pdfMerger->setOutputFile("test.pdf")
      ->merge();
  }
}
You can’t perform that action at this time.