Skip to content

Instantly share code, notes, and snippets.

@willjohnson
Created December 11, 2017 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willjohnson/cb39b65e0d40df4b39a71316319260b7 to your computer and use it in GitHub Desktop.
Save willjohnson/cb39b65e0d40df4b39a71316319260b7 to your computer and use it in GitHub Desktop.
PDFTable bug where table cell alignment and width is discarded
fpdftable_1.95
http://vanxuan.net/tool/pdftable/index.php
I encountered a small bug where I was getting different pdf output from the same code. It turns out if you include pdftable.inc.php inside of a function then it will not respect the table cell alignment or table width when outputting the pdf. Include/require the lib outside of the function and then output inside of the function and you will get the table formatted as you anticipated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment