ODS PDF escapechar and 'extra' spaces

Reply
New Contributor
Posts: 2

ODS PDF escapechar and 'extra' spaces

I'm using ODS PDF Text to create some standard reports. When I put a change in style in the middle of a text line (e.g. to italicize a word), extra spaces are inserted in front of the italicized word. After some experimentation, I found that this only happens when the text line is reasonably long (I didn't do enough experimentation to determine the exact length of text that would invoke the problem. For example:

The following work correctly:

pdf text="^S={font_face=calibri font_size=11pt }regular^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} regular.";

It produces:      regular italic regular

But when the text line is long:

pdf text="^S={font_face=calibri font_size=11pt }Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit^S={font_face=calibri font_size=11pt font_style=italic} italic^S={font_face=calibri font_size=11pt} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ipsum dolor sit amet, consectetur adipiscing elit.";

It produces:      Lorem ipsum etc.   italic Lotrm ipsum etc.       [note there are two extra spaces in front of the word "italic"]

I would like to think that I've looked everywhere for a solution... but I'm sure I've missed something. Anybody have any clues?

thanks!

Grand Advisor
Posts: 10,210

Re: ODS PDF escapechar and 'extra' spaces

Can't duplicate this on my set up.

A longish shot is that sometimes extremely long lines in the editor misbehave.

As a quick attempt I would try putting some actual returns in the lines so that the line length in the editor is maybe 100 or so.

Place a space at the beginning of the following line as the ODS text processor will sometimes eat the space between words if it is only at the end of a line.

Ask a Question
Discussion stats
  • 1 reply
  • 175 views
  • 0 likes
  • 2 in conversation