PHPackages                             vz777/pdf-product-sheet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vz777/pdf-product-sheet

ActiveThelia-module

vz777/pdf-product-sheet
=======================

02↑2900%PHP

Since Jul 30Pushed todayCompare

[ Source](https://github.com/vz777/PdfProductSheet)[ Packagist](https://packagist.org/packages/vz777/pdf-product-sheet)[ RSS](/packages/vz777-pdf-product-sheet/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PdfProductSheet
===============

[](#pdfproductsheet)

Ce module permet de générer un PDF avec Dompdf de la fiche produit à partir d'un template qui sera cherché dans le template PDF courant. Les routes sont les mêmes que celles du module [PdfGenerator](https://github.com/roadster31/PdfGenerator/). Dans le cas peu probable où vous souhaiteriez utiliser les deux modules, changez le nom des routes dans PdfProductSheet.

fr\_FR
------

[](#fr_fr)

Fonctionnalités
---------------

[](#fonctionnalités)

- Génération d'une fiche produit PDF
- Mise à disposition de l'image principale du produit dans les templates PDF
- Ajout d'un en-tête HTTP `Link` de type `canonical` vers la fiche produit
- Polices personalisées à installer dans /ressources/fonts

Utilisation
-----------

[](#utilisation)

Templating
----------

[](#templating)

Le template reçoit une variable supplémentaire :

- `$product_image_data_uri` : contient l'image principale du produit encodée en Data URI (ou `null` si aucune image n'est disponible).

Exemple :

```
{if $product_image_data_uri}

{/if}
```

Si vous voulez utilisez des polices personnalisées, placez les fichiers `.ttf` dans : PdfProductSheet/Resources/fonts/

### Télécharger une fiche produit

[](#télécharger-une-fiche-produit)

```
https://yourshop.tld/getpdf/template/nom-du-produit-123?id=123

```

### Visualiser une fiche produit

[](#visualiser-une-fiche-produit)

```
https://yourshop.tld/viewpdf/template/nom-du-produit-123?id=123

```

Avec :

- `template` : le nom du template PDF (sans l'extension `.html`) ;
- `nom-du-produit-123` : utilisé uniquement comme nom du fichier PDF ;
- `id` : l'identifiant du produit.

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require vz777/pdf-product-sheet

```

Prérequis
---------

[](#prérequis)

- Thelia 2.5+
- Extension PHP GD
- Dompdf

en\_US
------

[](#en_us)

The module generates product sheet PDFs using Dompdf. The PDF template is searched in the active PDF template directory. The routes are the same as the PdfGenerator module:

If you need to use both modules at the same time, rename the routes in PdfProductSheet.

Features
--------

[](#features)

- Generate a PDF product sheet from a product page
- Provides the main product image as a Data URI for PDF templates
- Adds a canonical HTTP Link header pointing to the product page

Usage
-----

[](#usage)

Templating
----------

[](#templating-1)

The template receives an additional variable:

- `$product_image_data_uri`: contains the main product image encoded as a Data URI (or `null` if no image is available).

Example:

```
{if $product_image_data_uri}

{/if}
```

If you want to use custom fonts, place the .ttf files in PdfProductSheet/Resources/fonts/

### Download a product sheet

[](#download-a-product-sheet)

```
https://yourshop.tld/getpdf/template-name/product-name-123?id=123

```

### Preview a product sheet

[](#preview-a-product-sheet)

```
https://yourshop.tld/viewpdf/template-name/product-name-123?id=123

```

Where:

- `template-name` is the PDF template to render (without the `.html` extension).
- `product-name-123` is only used as the generated PDF filename.
- `id` is the product identifier.

Installation
------------

[](#installation-1)

### Composer

[](#composer-1)

```
composer require vz777/pdf-product-sheet

```

Requirements
------------

[](#requirements)

- Thelia 2.5+
- PHP GD extension
- Dompdf

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16600297?v=4)[vz777](/maintainers/vz777)[@vz777](https://github.com/vz777)

### Embed Badge

![Health badge](/badges/vz777-pdf-product-sheet/health.svg)

```
[![Health](https://phpackages.com/badges/vz777-pdf-product-sheet/health.svg)](https://phpackages.com/packages/vz777-pdf-product-sheet)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
