douyou7102 2014-06-26 17:14
浏览 66
已采纳

wkhtmltopdf从文件随机空框生成PDF

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条回答 默认 最新

  • doxp30826 2014-06-26 17:41
    关注

    Finally figured it out. It appears that the issue wasn't with the text or database row at all. It was trying to use Helvetica. I'm not sure why this caused an issue on just that one row, but it did. I switched to Arial and it works perfectly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助