Registry / utility / kartik-v-yii2-mpdf

kartik-v-yii2-mpdf

JSON →
library1.0.6phppackagistunverified

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

composer require kartik-v/yii2-mpdf
INSTALL
IMPORT
SIG · KARTIK-V-YII2-MPDF
K
kartik-v-yii2-mpdf
utilityphpv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pdf
use kartik\mpdf\Pdf;

Generate a PDF from HTML in Yii2.

<?php use kartik\mpdf\Pdf; $pdf = new Pdf([ 'mode' => Pdf::MODE_UTF8, 'content' => '<h1>Hello World</h1>', 'options' => [ 'title' => 'Example PDF', 'subject' => 'Generating PDFs via Yii2' ], 'methods' => [ 'SetHeader' => ['Generated PDF'], 'SetFooter' => ['{PAGENO}'], ] ]); return $pdf->render();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kartik-v-yii2-mpdf — pip install kartik-v-yii2-mpdf · libregistry