Bold text causing overflow into page margins

Hi, I am currently using 3.0 in .NET.

I have setup PDF generation and use the TextSegment class so that I can have both bold and normal font weight text on the same line.

I recently discovered that this can cause text overflow when the bold text is too long.

Has anyone encountered or overcome this issue?

@gornall.nick

Thank you for contacting support.

I would like to share with you that you are using quite an older version of Aspose.Pdf if that 3 refers to the version of Aspose.Pdf API. Please try using latest version, Aspose.Pdf for .NET 17.11, in your environment. You may visit this documentation article to see how to add regular, bold, italic or underlined text to a PDF file. If you still face the issue of text overflow into page margins then please share your source file and code snippet to reproduce the issue so that we may investigate further to help you out.