We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TextState.MeasureString calc fragment width = 0

I’m using TextState.MeasureString(fragment.Text) to calculate the fragment width. Surprisingly find that the output width is 0.

Aspose.pdf version is 22.7.

PDF file:
example.pdf (99.0 KB)

AsposeExample.zip (200.2 KB)


We have logged this problem in our issue tracking system as PDFNET-52224. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.