php - Crop text if longer than Cell Width in fPDF? -
i have cell in fpdf 50mm wide populated field in database. there way can crop text doesn't go beyond 50mm if field contains lot of text?
alternatively there way in php crop string based on it's mm length when printed @ specific font size?
a cell of size 100mm can contains approx 75 character of font size 8. try adject text length manually above hint.
but suggest better use multicell()
dynamic text size.
Comments
Post a Comment