Pdf PdfStringFormat Does not return the expected format

Hi;

I am trying to generate pdf files where this text is justified to a certain width. The tests I have performed work perfectly to align the text to the left, center and right. However, in the justify option there is no difference between left and justified. Am I doing something wrong?

I am attaching the example project and the resulting pdf file

Thanks

Best regards,


Jesús


Attachment: PdfStringFormat_feb01b23.rar

5 Replies

JT Jeyalakshmi Thangamarippandian Syncfusion Team February 17, 2025 01:30 PM UTC

Hi Jesus,

We have checked the reported issue, and this behavior is expected when rendering short text in a PDF document. There is no visible difference between left-aligned and justified text for small text. However, if you provide a longer text, the difference between left-aligned and justified text will be noticeable.

Please refer to the screenshot for clarification.

In word:

image

In PDF:

image


Regards,

Jeyalakshmi T




JE Jesús February 18, 2025 10:12 AM UTC

Hi  Jeyalakshmi T

Ok, it's clear to me.

Thanks

Best regards,

Jesús





JE Jesús replied to Jesús February 19, 2025 07:15 PM UTC

Hi  Jeyalakshmi T


Please could you send me the code that corresponds to the images?


Regards,


Jesús



IJ Irfana Jaffer Sadhik Syncfusion Team February 20, 2025 12:30 PM UTC

Hi Jesus,


Please refer to the sample attached.


Regards,

Irfana J.


Attachment: PdfStringFormat_feb01b23_6ac448c4.zip


JE Jesús February 20, 2025 02:34 PM UTC

Hi  Irfana J.


Thanks very muchs


Regards,

jJsús


Loader.
Up arrow icon