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 --- .../mpdf/examples/example07_tables_borders.php | 500 +++++++++++++++++++++ 1 file changed, 500 insertions(+) create mode 100644 inc/3rdparty/libraries/mpdf/examples/example07_tables_borders.php (limited to 'inc/3rdparty/libraries/mpdf/examples/example07_tables_borders.php') diff --git a/inc/3rdparty/libraries/mpdf/examples/example07_tables_borders.php b/inc/3rdparty/libraries/mpdf/examples/example07_tables_borders.php new file mode 100644 index 00000000..a0cf4fcb --- /dev/null +++ b/inc/3rdparty/libraries/mpdf/examples/example07_tables_borders.php @@ -0,0 +1,500 @@ + + + + + +

mPDF

+

Tables - Borders

+

mPDF

+ +Border conflict resolution in tables with border-collapse set to "collapse". mPDF follows the rules set by CSS as well as possible, but as you can see, there is some difference in interpretation of the rules: + + + + + + + + + + + + + + + + + + + + + + + + + +
mPDFInternet Explorer
IE 7
Firefox
v 3.0.3
+ + + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + +
+ + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
mPDFmPDF < v3Internet Explorer
IE 7
Firefox
v 3.0.3
+ + + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + +
+ + + + + + + + + + + + + + + + + + + + + +
111
111
11
111
+ + +
+ + + +

mPDF

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Datadouble reddashed yellowdotted greenData
Datahidden DatanoneData
Dataridge bluenone none Data
Datanone groove pinknone Data
none inset graynone outset purplenone
+ +

Firefox

+ + +
+ + +

IE 7

+ + + + +
mPDF
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Datadouble reddashed yellowdotted greenData
Datahidden DatanoneData
Dataridge bluenone none Data
Datanone groove pinknone Data
none inset graynone outset purplenone
+ +
Firefox
+ + + + +
IE 7
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + + + + + + + + + + + + + + +
solid orangenonedouble rednoneinset graynoneoutset purplenonegroove pinknoneridge blue
+ + + +'; + +//============================================================== +//============================================================== +//============================================================== +include("../mpdf.php"); + +$mpdf=new mPDF('en-GB-x','A4','','',10,10,10,10,6,3); + +$mpdf->SetDisplayMode('fullpage'); + +$mpdf->list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list + +// LOAD a stylesheet +$stylesheet = file_get_contents('mpdfstyletables.css'); +$mpdf->WriteHTML($stylesheet,1); // The parameter 1 tells that this is css/style only and no body/html/text + +$mpdf->WriteHTML($html); + +$mpdf->Output(); +exit; +//============================================================== +//============================================================== +//============================================================== + +?> \ No newline at end of file -- cgit v1.2.3