开发者

tcpdf - HTML table showing up way too small [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide au开发者_如何学JAVAdience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I'm using tcpdf (http://www.tcpdf.org/) to generate PDFs of some tables and images. The images are loaded without an issue, but I'm having issues with the writeHTML() function.

I can't seem to control the font sizes or table width/height through the HTML, so I end up with a tiny, tiny, tiny table that you have to print of and squint at to even attempt reading.

I've tried editing the table itself, CSS, even putting the table itself inside an h1, but nothing is changing the font size. I have the font size in tcpdf set to 16, but this also has no affect. Has anyone else run into this issue?


So, anyways -- apparently tcpdf's HTML engine gives the tag precedence over any CSS, or other size-adjusting tags. After removing all of the tags from the HTML and using pure CSS, everything cleared up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜