table { border-collapse: collapse; margin-top: 0; text-align: center; } td { padding: 0.5em; } h1 { margin-bottom: 0; }

mPDF Images

GIF JPG JPG (CMYK) PNG BMP WMF SVG

Opacity 50%

Alpha channel

PNG

Transparency

PNG
GIF
WMF
SVG
Images returned from tiger.php
GIF JPG PNG WMF SVG

Image Alignment

From mPDF version 4.2 onwards, in-line images can be individually aligned (vertically). Most of the values for "vertical-align" are supported: top, bottom, middle, baseline, text-top, and text-bottom. The default value for vertical alignment has been changed to baseline, and the default padding to 0, consistent with most browsers.

These images are top aligned

These images are text-top aligned

These images are bottom aligned

These images are text-bottom aligned

These images are baseline aligned

These images are middle aligned

Mixed alignment

baseline: text-bottom: middle: bottom: text-top: top:

Image Border and padding

From mPDF v4.2, Image padding is supported as well as border and margin.

Rotated Images



                 
     
'; //============================================================== //============================================================== //============================================================== include("../mpdf.php"); $mpdf=new mPDF('c'); $mpdf->WriteHTML($html); $mpdf->Output(); exit; //============================================================== //============================================================== //============================================================== //============================================================== //============================================================== ?>