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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -