Skip to content

Commit 0d76496

Browse files
committed
Ajout utilitaires pour PDF
1 parent 5bdab4e commit 0d76496

File tree

9 files changed

+1440
-2
lines changed

9 files changed

+1440
-2
lines changed

.idea/geforp-sf5.4.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/unoconv

Lines changed: 1285 additions & 0 deletions
Large diffs are not rendered by default.

bin/wkhtmltopdf-amd64

44.6 MB
Binary file not shown.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"gedmo/doctrine-extensions": "^3.5",
1919
"jms/serializer-bundle": "^4.0",
2020
"knplabs/knp-menu-bundle": "^3.2",
21+
"knplabs/knp-snappy-bundle": "^1.9",
2122
"mbence/opentbs-bundle": "dev-master",
2223
"mopa/bootstrap-bundle": "^3.4",
2324
"nelmio/cors-bundle": "^2.2",

composer.lock

Lines changed: 139 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
2222
Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle::class => ['all' => true],
2323
App\Bundle\ShibbolethBundle\ShibbolethBundle::class => ['all' => true],
24+
Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
2425
];

config/packages/knp_snappy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
knp_snappy:
2+
pdf:
3+
enabled: true
4+
binary: '%env(WKHTMLTOPDF_PATH)%'
5+
options: []
6+
image:
7+
enabled: true
8+
binary: '%env(WKHTMLTOIMAGE_PATH)%'
9+
options: []

templates/PDF/attestation.pdf.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set organization = inscription.session.training.organization %}
2-
{% extends "SygeforCoreBundle::layout.pdf.twig" %}
2+
{% extends "PDF/layout.pdf.twig" %}
33

44
{% block head %}
55
<style>

0 commit comments

Comments
 (0)