Dear Aspose!
The text “acéllemezecsk 1234567890123456789 123456789 ABCDEF” wrapped into
“acéllemezecsk 1234567890123456789 12345” and “ABCDEF”.
Looks like the length calcuation is wrong so part of the text is being cut/lost.
Tested with version 22.12 and 24.6 (both jdk17).
out.zip (79.4 KB)
template.zip (56.8 KB)
@EPluribusUnum Could you please also save the output document as DOCX and attach it here for our reference? Since we do not have your data source we cannot recreate the PDF document you have attached. If the problem is in rendering to PDF, simple conversion of DOCX produced on your side will allow us to reproduce the problem.
@alexey.noskov, attached the docx.
out.zip (30.2 KB)
Thank you!
@EPluribusUnum Thank you for additional information. I see the same problem in MS Word and in MS Word produced PDF: ms.pdf (177.2 KB)
The problem is caused by negative right indent of the paragraph:
if reset it to zero the text is wrapped properly. here is the modified template: template.zip (57.3 KB)
1 Like
@alexey.noskov , indeed the negative value was the issue. After changeing to 0 the wrapping is corrent.
Could you add a new WarningType for IWarningCallback for negative ident values?
Thank you!
@EPluribusUnum Negative indents might be intended. Bot positive and negative values of paragraphs indents are valid. So adding warning for negative values might be redundant.