Hi,
I’m trying to figure out if there is a way to add text that might overflow to the next page using the TextBuilder and TextParagraph classes. Or if there is another way to do this which still gives some control over the rest of the document.
Currently, my text just falls off the page. I’ve tried using the measurement of the paragraph to see when this happens, but as I cannot undo an ‘AppendLine’, I cannot do anything with the knowledge of the overflow.
I’m having the same problem, and I don’t see a Paragraphs collection on the PdfDocument object. Can you please post some sample code to show how this should be done?
The Paragraphs Collection can be accessed from Page Class in Document object like below:
Document document = new Document();
var page = document.Pages.Add();
var textFragment = new TextFragment($"This test Text")
page.Paragraphs.Add(textFragment);
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.