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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -