# DynaPDF Problem, it cuts some texts

To be shure it was not my project, I Just openned the sample “Create PDF in memory” and replace a single line

``````call pdf.WriteFText pdf.ktaCenter, "My first Xojo output!"

'Changed to:

||1.1|5DD11E34-1248-436E-3547-508DA530F662|2017-11

More weird, it works if i add a single space at the end of the string.

Any Idea why is this happening and how to prevent? Its a Bug?

The Other problem is that when using ktaJustify, The first line breaks afther the |2017- (just like in here). Is there a way that the output will be all Justified?

Thanks

The text has no spaces, so justify is not possible.

And I’ll ask Jens what the bug could be with the normal output.
But I don’t see you set text rectangle.

[quote=366833:@Christian Schmitz]The text has no spaces, so justify is not possible.

And I’ll ask Jens what the bug could be with the normal output.
But I don’t see you set text rectangle.[/quote]

As I said, this is just using the example file. In my project i do set the text rectangle with exactly the same result, text truncated at 2017-12-

For now, some ridiculous work around:

``Call pdf.WriteFText pdf.ktaJustify, MyLongString + " "``

As in the justify, its also weird, In the document, the text is drawn in 9 lines, but the fist one is the only one that is truncated at the midle of the text rectangle. The rest of them are justified.

Also, the are other 2 strings, half the size than this, also no spaces and those are justified (those 2 strings don’t have any - )