baldeweg/pdf-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Offers tools for creating pdf files.

Installs: 101

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.4.0 2022-07-03 11:40 UTC

This package is auto-updated.

Last update: 2022-10-13 15:33:38 UTC


README

Offers tools for creating pdf files.

Getting Started

composer req baldeweg/pdf-bundle

Activate the bundle in your config/bundles.php, if not done automatically.

Baldeweg\Bundle\PdfBundle\BaldewegPdfBundle::class => ['all' => true],

Usage

use Baldeweg\Bundle\PdfBundle\Pdf;

$pdf = new Pdf();
$pdf->create($path, $filename, $content, $meta);

Template

With the default template the meta field should look like the following. You are free to overwrite this template (with @BaldewegPdf prefix) as documented at https://symfony.com/doc/current/bundles/override.html#override-templates. When using a base64 encoded image remove data:image/png;base64,, instead the string must start with an @.

sender:
- name
- street
- zip
- city
receiver:
- name
- street
- zip, city
details:
- name: date
  value: 01.01.2021
subject:
- subject 1
- subject 2
salutation: Dear Jane,
valediction: Greetings
signee:
- John
logo: url