ssossossosso

H2P light (HTML2PDF) Generator Bundle by EIKONA

 
H2P light (HTML2PDF) Generator Bundle by EIKONA
  • 0.00 / 5 5
0 votes

Short Overview

The „HTML2PDF“ generator bundle by EIKONA extends AKENEO with an additional render engine to create PDF documents e.g. as product data sheets. After installing the bundle you will be able to use the render engine (based on webkit) to describe the layout in HTML, CSS3 and JavaScript. By using the bundle it is also possible to create cover sheets for the document as well as to define a header and footer.

Description

The „HTML2PDF“ generator bundle by EIKONA extends AKENEO with an additional render engine to create PDF documents e.g. as product data sheets. After installing the bundle you will be able to use the render engine (based on webkit) to describe the layout in HTML, CSS3 and JavaScript. By using the bundle it is also possible to create cover sheets for the document as well as to define a header and footer.

The delivered example template shows a fast and easy start to create your own template. The template shows how you can provide company details, product details and a head and footer line in the PDF.

To develop your template you need HTML and CSS skills. Furthermore we at EIKONA will help you for the development if needed.

Requirements

  • Akeneo: Version 1.6 or above
  • WkHtmltopdf v0.12.3 or above

 

Installation

See https://git.eikona-server.de/akeneo-bundles/pdf-generator-bundle#installation

Konfiguration

The bundle will be konfigured with the parameters of Akeneo and Synfony. In the file  app/config/parameters.yml you will have to fill in the following parameters:
# other parameters ...
EikonaPdfGenerator:
footer: false             # Should a footer template be attached to data sheet
        header: null              # Should a header template be attached to data sheet
        cover: true               # Render the cover page?
        cover-template: null      # Overwrites the default template. Path to template required
        footer-template : null    # Overwrites the default template. Path to template required
        header-template: null     # Overwrites the default template. Path to template required
        footer-height: '10'       # Depending on your footer template, this value scales the spacing between bottom and content
        header-height: '10'       # Depending on your header template, this value scales the spacing between top and content

 

To use your own footer template you need to define the field „footer-template“ of the value „AppBundle:Default:footer.html.twig“ and set it to „true“. The render engine will now use for the footer your defined template. The same can be done with the cover sheet („cover“)  and the header („header“).

The fields „footer-height“ and „header-height“ serve as scale factors to avoid an overlapping of the header or footer row. The specification will be done in millimeters.

Akeneo

  • v1.6.11
  • v1.6.10
  • v1.6.9
  • v1.6.8
  • v1.6.7
  • v1.6.6
  • v1.6.5
  • v1.6.4
  • v1.6.3
  • v1.6.2
  • v1.6.1
  • v1.6.0
to submit a support request