Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在Zend_pdf_表格组件上插入版权符号?_Php_Zend Framework_Pdf_Zend Pdf - Fatal编程技术网

Php 如何在Zend_pdf_表格组件上插入版权符号?

Php 如何在Zend_pdf_表格组件上插入版权符号?,php,zend-framework,pdf,zend-pdf,Php,Zend Framework,Pdf,Zend Pdf,有人知道如何在Zend_pdf_表格组件上插入版权符号吗 另一个符号?关键是知道特殊字符的UTF-8码点 下面是一个例子: $pdf = new Zend_Pdf(); $pdf->pages[0] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); $pdf->pages[0]->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 36); $pdf-

有人知道如何在Zend_pdf_表格组件上插入版权符号吗


另一个符号?

关键是知道特殊字符的UTF-8码点

下面是一个例子:

$pdf = new Zend_Pdf();

$pdf->pages[0] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4);
$pdf->pages[0]->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 36);

$pdf->pages[0]->drawText("\xc2\xa9", 200, 400);

$pdf->save( 'test.pdf' );
在本例中,“\xc2\xa9”是版权符号的UTF-8代码点。TM符号为“\xe2\x84\xa2”,emdash为“\xe2\x80\x94”。

trued©&复制结果是将文本绘制为错误,©&复制我解决了,但也谢谢你的回答