Abiword can't print long RTF file (solved)
Thierry de Coulon
tcoulon at decoulon.ch
Sat Nov 13 07:04:26 UTC 2010
On Thursday 11 November 2010 11:14:10 pm Thierry de Coulon wrote:
> I've been writing a program that produces RTF files. The program runs on
> MacOS and on Linux (it's written in REALbasic).
>
> On MacOS, the RTF files are opened and printed by TextEdit with no problem.
>
> On Ubuntu, documents that are only one page display and print well.
> Documents that are several page long display OK but when it comes to
> printing I get crazy results (some letters and numbers print across the
> page. The layout seems to be preserved but it's as if only the first
> character of every sentence is printed. This shows on the print preview
> though...).
>
> Anyone also encountered this behaviour and maybe knows a workaround?
>
> Thierry
Answering myself, just because I think it might be useful to someone else.
While it does not explain why only some versions show this, I found out the
problem came from the RTF code, not from Abiword.
The font header came from TextEdit and refered to MacOS fonts:
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
This was displayed correctly but print preview and printing freaked out.
This new version, taken directly from Abiword's own formatting, works with
both Abiword _and_ textEdit:
{\fonttbl\f0\fttruetype Arial;}
Thierry
--
"We live at a time when emotions and feelings count more than truth, an there
is a vast ignorance of science" James Lovelock
More information about the ubuntu-users
mailing list