views:

18

answers:

1

I used ufpdf to generate pdf files with Unicode/UTF-8 in PHP. It works properly in xampp 1.6.7 for windows.

However, I tested it in xampp 1.7.2(window), it doesn't work and I got like that:

"%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x�3R��2�35W(�r Q�w3T06�30PISp �Z*�[��Y+��..."

What shall I do?

A: 

It seem there is problem in rendering the files to the pdf. I will suggest you to used the liberies of DOM PDF or html2ps. These are widely used for rendering the PHP files.

I will prefer DOM PDF for your need.

HTML2PS

dompdf

Ashay