我正在使用DOM PDF 0.6.0 Beta 2.我想在PDF文件中使用自定义字体(字体:'Segeo Print','Lucida Handwriting','夜空中的飞机').
我按照指南在我的PHP代码中安装和使用字体,这里给出了http://code.google.com/p/dompdf/wiki/CPDFUnicode
但我无法在PDF中获得欲望字体.你可以在这篇文章中找到我的代码.请让我知道如何解决这个问题.
<?php
require_once("dompdf_config.inc.php");
$html = "<html>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'>
<style>
*{font-size:15px;}
div.ClJ{font: nightsky;}
</style>
</head>
<body>
<div class='ClJ'>This text is in DIV Element</div><br /><br />
</body>
</html>";
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$pdf = $dompdf->output();
$dompdf->stream("dompdf_out.pdf", array("Attachment" => false));
?>
Run Code Online (Sandbox Code Playgroud) 我希望在基于CodeIgniter的应用程序中为用户的配置文件信息提供一个干净的URL.
请查看下面的URL格式.
Actual URL : http://www.mydomain.com/index.php/users/profile/user1
Run Code Online (Sandbox Code Playgroud)
我期待用户拥有个人网址
http://www.mydomain.com/user1
http://www.mydomain.com/user2
http://www.mydomain.com/user3
Run Code Online (Sandbox Code Playgroud)
URL http://www.mydomain.com/user1应在后台执行时处理http://www.mydomain.com/index.php/users/profile/user1.
我将使用Route库从URL中删除index.php.
提前感谢您提供任何帮助.