Ask Your Question
0

Text wrap in form field in PDF

asked 2017-11-17 17:19:07 +0200

jmanko gravatar image

updated 2017-11-17 17:39:21 +0200

I have a form text box that I fill with data and then export to a PDF. The generated PDF is wrapping text mid-word, but I need the text wrap to break on whitespace only. Is there a design/setting for that, or is it a bug?

Here is the text that I'm inserting:

IT IS HEREBY UNDERSTOOD AND AGREED THAT THE CONTRACT TO WHICH THIS FORM IS PART HAS BEEN CANCELLED AND IS NO LONGER IN EFFECT AS OF 12:01AM 01/01/2018

The date is wrapping mid-date, when in reality I need it to wrap at the space beforehand.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-18 16:55:14 +0200

PèreOrval gravatar image

Remove the spaces in the date. Then after AM Insert -> Formatting Mark -> Non-breaking space

edit flag offensive delete link more

Comments

Yes, the space character is explicitly allowed to wrap by Unicode character classification. Non-breaking space is designed for use in places where one needs to visually separate parts of what must stay together.

A handy way to insert non-breaking space is Ctrl+Shift+Space.

Mike Kaganski gravatar imageMike Kaganski ( 2017-11-18 17:02:52 +0200 )edit

The problem is not with the space between the time and the date. The date itself is wrapping, like such: "11/" and "01/2018". It shouldn't break on the slash.

jmanko gravatar imagejmanko ( 2017-11-20 14:32:45 +0200 )edit

As per http://unicode.org/reports/tr14/#SY, the solidus is a symbol that prevents a break before, and allows a break after, except in front of digits. So yes, you possibly should file a bug report - but I'm not sure which problem is that (you could post a sample file somewhere, and post a link here to see the problem, and if that's LO that breaks, then it's LO problem).

Mike Kaganski gravatar imageMike Kaganski ( 2017-11-20 14:47:04 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-17 17:19:07 +0200

Seen: 141 times

Last updated: Nov 18 '17