Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用ufpdf在 PHP 中生成带有 Unicode/UTF-8 的 pdf 文件。它在 xampp 1.6.7 for windows 中正常工作。
但是,我在 xampp 1.7.2(window) 中对其进行了测试,它不起作用,我得到了这样的结果:
“%PDF-1.3 3 0 obj <> endobj 4 0 obj <> 流 x�3R��2�35W(�r Q�w3T06�30PISp �Z*�[��Y+��...”
将文件呈现为 pdf 似乎存在问题。我会建议你使用 DOM PDF 或 html2ps 的 liberies。这些被广泛用于呈现 PHP 文件。
我会更喜欢 DOM PDF 以满足您的需要。
HTML2PS
dompdf