I am using FPDF (www.fpdf.org). after downloading the fpdf class library, I also need to use the following Chinese library to support Chinese characters, but I can only use one Chinese font (文 ). For this reason, I have been worried for a long time, and now I have finally finished it. I want to convert the TrueType font to the pt1 font: The following is a Chinese library found on FPDF :? Phprequire (fpdf. ph EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Use
PHP Output PDF problem
I use FPDF1.6, how to add underline to the specified text? Example: Name
------Solution--------------------
Cell (float w [, float h [, string txt [, mixed border [, int ln [, string align [, int fill [, mixed link]]])
Border
To display a border around the edge of the cell, use the following values:
0: No Border
1: Border
Or include some or all of the following strings (under an
);d ie; $mpdf->showwatermarktext = true; $mpdf->setautofont (); //$mpdf->sethtmlheader (' head '); //$mpdf->sethtmlfooter (' bottom '); $mpdf->writehtml ($strContent); $mpdf->output (' ss.pdf '); //$mpdf->output (' tmp.pdf ', true); //$mpdf->output (' tmp.pdf ', ' d '); //$mpdf->output (); Exit; ?
Pass: Note that the PHP file should be UTF-8. Do not have the mood the sky pastes out the code, oneself writes when the square garbled, may
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.