From 4188f38ad56d7ba2ea46e94403f305243514f80c Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 24 Jul 2014 15:49:36 +0200 Subject: add pdf and mobi libraries --- .../libraries/mpdf/examples/example04_images.php | 207 +++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 inc/3rdparty/libraries/mpdf/examples/example04_images.php (limited to 'inc/3rdparty/libraries/mpdf/examples/example04_images.php') diff --git a/inc/3rdparty/libraries/mpdf/examples/example04_images.php b/inc/3rdparty/libraries/mpdf/examples/example04_images.php new file mode 100644 index 00000000..b9877634 --- /dev/null +++ b/inc/3rdparty/libraries/mpdf/examples/example04_images.php @@ -0,0 +1,207 @@ + +table { border-collapse: collapse; margin-top: 0; text-align: center; } +td { padding: 0.5em; } +h1 { margin-bottom: 0; }z + +

mPDF Images

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GIFJPGJPG (CMYK)PNGBMPWMFSVG

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; +//============================================================== +//============================================================== +//============================================================== +//============================================================== +//============================================================== + + +?> \ No newline at end of file -- cgit v1.2.3