Reputation: 31
We used mpdf for creating the PDF from HTML. we struck with one issue while creating the PDF. Font size is scaling in PDF. If I used 42 as it will gives 31.4 size only.
Definately this problem is due to //Scale factor define('_MPDFK', (72/23.5));
Don't to set the scaling factor causing problem.
Any help on this topic will be appriciate.
Upvotes: 3
Views: 3927
Reputation: 10381
Try using <h?>
tags, they work fine to change font sizes (h1..h6). To remove bold just add:
<h3 style="font-weight:normal;"> My text </h3>
Upvotes: 0
Reputation: 649
mPDF uses autosizing on tables. If you are using tables in your HTML you need to set
<table style="overflow: wrap">
on all your tables. Check the mPDF Manual on Auto-Layout algorithm.
Upvotes: -2