[英]Zend_PDF text formatting
我在項目中使用Zend Framework。 " into PDF text to be the same using Zend_PDF ? 我的問題是,如何使用Zend_PDF將“ hello ”之類的html文本轉換為PDF文本,使它們相同?
謝謝。
我認為沒有像html2pdf這樣的自動轉換功能。 您可以這樣設置Font:
$font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_COURIER_BOLD);
$pdfPage->setFont($font, 36) // font and size
->drawText('hello', 72, 720, 'UTF-8')
->drawText('world', 72, 650, 'UTF-8');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.