© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
5 replies
Anton

QuestPDF measuring text

The docs don't say anything about the ability to get the text size before rendering.
https://www.questpdf.com/api-reference/text.html
I need to select the largest string that will fit in an amount of space. I have manually computed the space that will be available for the piece of text so that I could check if it would fit. However, no such function seems to exist? I need a more or less precise measurement to make sure this piece of text never wraps or gets clipped.
Text | QuestPDF
Open-source modern .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

QuestPDF + FontAwesome
C#CC# / help
4y ago
QuestPDF round border
C#CC# / help
4y ago
WPF TextBlock Text binding
C#CC# / help
2y ago
✅ Avalonia - Textbox text changed
C#CC# / help
2y ago