douyou7102
douyou7102
2014-06-26 17:14

wkhtmltopdf从文件随机空框生成PDF

  • pdf
  • wkhtmltopdf
  • pdf-generation
  • php
  • mysql

I'm using wkhtmltopdf to create a pdf from a file (using PHP if that's important) and it's working great except for a random empty box. Here is what I've tried to get the box to go away:

  1. Changed encoding for wkhtmltopdf to be UTF-8
  2. Made sure the file was encoded using UTF-8
  3. Checked the MySql database that it's pulling from to make sure that the encoding was UTF-8
  4. Doubled/Tripled checked to make sure there is no extra character at the end of the line.
  5. Deleted and re-inserted the database row
  6. Rendered everything except that database row and the box wasn't there, so I know it's that entry.

Here is a copy and paste of the box from Adobe Reader in case it helps:

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐