使用<pre> Tag in FPDF

时间:2016-11-09 06:51:14

标签: php pdf

I am using FPDF to convert a submitted form in PDF format. On the PDF file, I have a <pre> tag. Is there a way to align the text inside the <pre> just like the normal output. Below are the example

Browser output:

view from chrome

PDF Output

PDF Output

The code that I use for the FPDF Function is on this link.

PHP

$pdf->WriteHTML('<pre>'.$remarks.'</pre>');

Is it posible to make the PDF Output as same as the Browser Output.

0 个答案:

没有答案