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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -