I was thinking that I could somehow convert a column header text form MySQL to an Actual Width Size pixels. I am trying to generate PDF from the database and I want to adjust it to the column width myself. As I would use it for several tables, the width should be different, so I should be able to see: "The header is called company id for this column, so its width should be 40". Can I do something like this? Can I change the length of the text character to the actual width?
Thank you.
FPDF is a method that estimates the width of the string.
Comments
Post a Comment