-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice-6.php
70 lines (50 loc) · 3.77 KB
/
invoice-6.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require_once( plugin_dir_path( __FILE__ ) . '/dompdf/lib/html5lib/Parser.php');
require_once( plugin_dir_path( __FILE__ ) . '/dompdf/lib/php-font-lib/src/FontLib/Autoloader.php');
require_once( plugin_dir_path( __FILE__ ) . '/dompdf/lib/php-svg-lib/src/autoload.php');
require_once( plugin_dir_path( __FILE__ ) . '/dompdf/src/Autoloader.php');
Dompdf\Autoloader::register();
// reference the Dompdf namespace
use Dompdf\Dompdf;
ob_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Document</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<!-- <link href="https://fonts.googleapis.com/css?family=Hind+Siliguri" rel="stylesheet"> -->
<!-- <link href="https://fonts.maateen.me/adorsho-lipi/font.css" rel="stylesheet"> -->
<!-- <link href='https://fonts.googleapis.com/css?family=Baloo+Da' rel='stylesheet'> -->
<style>
.droid {
font-family: droidsansfallback, sans-serif;
}
</style>
</head>
<body>
<!-- <span class="droid">中文</span> / English -->
<!-- <p style="font-family: symbol , firefly, DejaVu Sans, sans-serif;"> ৳ ₹ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕</p> -->
<p> ৳ ₹ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕ hhm </p>
<p style="font-family: DejaVu Sans, firefly, sans-serif;"> ৳ ₹ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕ lol dokumentiert und vermittelt die deutsche Sprache und Literatur in ihren historischen und gegenwärtigen Formen.</p>
<p style="font-family: firefly, DejaVu Sans, sans-serif;"> ৳ ₹ ₹ ₨ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕ lol</p>
<p style="font-family: firefly, DejaVu Sans, sans-serif;"> ৳ ₹ ₹ ₨ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕ lol</p>
<!-- <p style="font-family: Arial ,'Baloo Da', cursive, ' DejaVu Sans', sans-serif;"> ৳ ৳ ৳ || ₹ ₹ Lek ؋ $ ƒ $ ₼ $ Br BZ$ ៛ ¥ kn ₱ Kč £ € kr ﷼ ₪ ₩ ден ₨ лв $U hmm-> ♕ lol पश्चिम पाकिस्तान की तत्कालीन सरकार के अन्याय के विरुद्ध </p> -->
<!-- <p><span style="font-family: FontAwesome" class="fa fa-envelope"></span></p> -->
<!-- <p><span class="fa fa-envelope"></span></p> -->
<!-- <p style="font-family: AdorshoLipi, Arial, sans-serif , "> ৳ ৳ ৳ पश्चिम पाकिस्तान की तत्कालीन सरकार के अन्याय के विरुद्ध aita kaj kore </p> -->
<!-- <p style="font-family: Arial ,'Baloo Da', cursive, ' DejaVu Sans', sans-serif;"> ৳ ৳ ৳ पश्चिम पाकिस्तान की तत्कालीन सरकार के अन्याय के विरुद्ध aita kaj kore </p> -->
</body>
</html>
<?php
$content = ob_get_clean();
$dompdf = new \Dompdf\Dompdf(); // new Dompdf();
$dompdf->loadHtml($content);
$dompdf->render();
header('Content-Type: application/pdf; charset=utf-8');
header('Content-disposition: inline; filename="' . $no . '.pdf"', false);
echo $dompdf->output();
// echo $content ;
?>