Thunderbird printing mystery

I use thunderbird on Linux and Windows, and i noticed that if i print
over windows everthing is correct.
Under Linux thunderbird creates spaces between words and i don’t know
why. It looks really bad.
I don’t know if thunderbird has its own printing engine or if it uses
the systems engine to print.
Does anyone else have the same problem or just me?

My stats
Windows 7, openSUSE 11.4 x64 KDE 4.6 using a brother HL-2244D printer
via cups.


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-15 02:09, JoergJaeger wrote:

> Under Linux thunderbird creates spaces between words and i don’t know why.
> It looks really bad. I don’t know if thunderbird has its own printing engine or if it uses the
> systems engine to print.

I haven’t tried lately printing from thunderbird, I usually paste into a
text editor to have more control.

In Linux any program has to convert the output to postscript, and this is
sent to cups. Then cups converts to printer language if necessary. In
Windows it uses a GDI with a printer context instead of display context,
and redraws. Then Windows has to convert that to printer language via drivers.

You could try printing from Th. to a file. I tried just that and the ps
file is perfect.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/14/2011 05:53 PM, Carlos E. R. wrote:
> On 2011-10-15 02:09, JoergJaeger wrote:
>
>> Under Linux thunderbird creates spaces between words and i don’t know why.
>> It looks really bad. I don’t know if thunderbird has its own printing engine or if it uses the
>> systems engine to print.
>
> I haven’t tried lately printing from thunderbird, I usually paste into a
> text editor to have more control.
>
> In Linux any program has to convert the output to postscript, and this is
> sent to cups. Then cups converts to printer language if necessary. In
> Windows it uses a GDI with a printer context instead of display context,
> and redraws. Then Windows has to convert that to printer language via drivers.
>
> You could try printing from Th. to a file. I tried just that and the ps
> file is perfect.
>

Well without testing i can say that documents that i print via Libre
will come out fine.
The thing is, i am not able to tell how and why since i don’t know the
steps. Thanks for telling, now i know something more. :slight_smile:

So it may be Thunderbird itself that perhaps converts it wrong. I
thought originally that the fonts could be the problem. But after trying
out different fonts, it appears to be not the problem.

I rather like to print directly from Thunderbird without going to
copying the text into another application. Haven’t checked if there is a
bug pending on mozilla, but i posted the same question also on Mozilla.

Maybe people don’t print that much these days, but i really do and like. :slight_smile:


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-15 04:06, JoergJaeger wrote:
> On 10/14/2011 05:53 PM, Carlos E. R. wrote:

> Well without testing i can say that documents that i print via Libre will
> come out fine.

Test it.

> So it may be Thunderbird itself that perhaps converts it wrong. I thought
> originally that the fonts could be the problem. But after trying out
> different fonts, it appears to be not the problem.

I told you to print to file from thunderbird and check the file.
I’m waiting…


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi,

you could install the vitual PDf printer and print to that.

I’ve often found that “misbehaving” progs print well to PDf - and then you just print out the pdf…

HTH

Lenwolf

On 2011-10-16 21:06, lenwolf wrote:
>
> Hi,
>
> you could install the vitual PDf printer and print to that.

Thunderbird can print directly to PDF. But in case you are looking for
problems, is best to print to postscript file and avoid intermediaries.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/16/2011 12:06 PM, lenwolf wrote:
>
> Hi,
>
> you could install the vitual PDf printer and print to that.
>
>
> I’ve often found that “misbehaving” progs print well to PDf - and then
> you just print out the pdf…
>
> HTH
>
> Lenwolf
>
>

Well, i filed a bug report (could not find anything similar).

https://bugzilla.mozilla.org/show_bug.cgi?id=694788

I haven’t tried that way to print but will give it a shot.

Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-16 21:56, JoergJaeger wrote:
> Well, i filed a bug report (could not find anything similar).

Before doing any test? Wow. :frowning:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/16/2011 01:03 PM, Carlos E. R. wrote:
> On 2011-10-16 21:56, JoergJaeger wrote:
>> Well, i filed a bug report (could not find anything similar).
>
> Before doing any test? Wow. :frowning:
>

What you mean test? I tried several font, changed the config, i even
counted the number of words between the spaces…

If i can’t print it drives me just mad. I love mozilla, but this is
really sad. I think this has nothing to do with openSUSE and is just
really a mozilla problem. All other apps print correctly.


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-16 22:14, JoergJaeger wrote:
> On 10/16/2011 01:03 PM, Carlos E. R. wrote:
>> On 2011-10-16 21:56, JoergJaeger wrote:
>>> Well, i filed a bug report (could not find anything similar).
>>
>> Before doing any test? Wow. :frowning:
>>
>
> What you mean test? I tried several font, changed the config, i even
> counted the number of words between the spaces…

I told you what to try, three times, you did not even acknowledge.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/16/2011 01:23 PM, Carlos E. R. wrote:
> On 2011-10-16 22:14, JoergJaeger wrote:
>> On 10/16/2011 01:03 PM, Carlos E. R. wrote:
>>> On 2011-10-16 21:56, JoergJaeger wrote:
>>>> Well, i filed a bug report (could not find anything similar).
>>>
>>> Before doing any test? Wow. :frowning:
>>>
>>
>> What you mean test? I tried several font, changed the config, i even
>> counted the number of words between the spaces…
>
> I told you what to try, three times, you did not even acknowledge.
>

Did you mean the postscript etc…

I did that and it does draw a space at nearly the end of the line going
down the whole page.

So it did not avoid the problem. But it does not do it if you select to
convert it to pdf. But what a hassle that is. If you print one or two
pages that may work.
And yes, i do appreciate it even if i did not mention it. I realize that
what i think and don’t write you can not know. So i apologize for that.
I forget sometimes.


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-17 03:18, JoergJaeger wrote:

> Did you mean the postscript etc…

Yep, that one.

> I did that and it does draw a space at nearly the end of the line going
> down the whole page.

Ah, so a different defect that when you print directly to paper?

> So it did not avoid the problem. But it does not do it if you select to
> convert it to pdf. But what a hassle that is. If you print one or two pages
> that may work.

Weird.
You must have something broken in your setup.

> And yes, i do appreciate it even if i did not mention it. I realize that
> what i think and don’t write you can not know. So i apologize for that. I
> forget sometimes.

Thanks.

I expected the .ps file to be correct - hold on. Did you display that .ps
file, or did you try to print it to paper?


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/16/2011 06:43 PM, Carlos E. R. wrote:
> On 2011-10-17 03:18, JoergJaeger wrote:
>
>> I did that and it does draw a space at nearly the end of the line going
>> down the whole page.
>
> Ah, so a different defect that when you print directly to paper?

Well, i print normally via the print menu.

>
>> So it did not avoid the problem. But it does not do it if you select to
>> convert it to pdf. But what a hassle that is. If you print one or two pages
>> that may work.
>
> Weird.
> You must have something broken in your setup.

Don’t know but what can break?

>> And yes, i do appreciate it even if i did not mention it. I realize that
>> what i think and don’t write you can not know. So i apologize for that. I
>> forget sometimes.
>
> Thanks.

Your welcome.

> I expected the .ps file to be correct - hold on. Did you display that .ps
> file, or did you try to print it to paper?

Well, if i look at the ps file it does have the same issue as if i would
print it out.
Also if i use printview it may show up also with spaces. I wish i were
capable to find the issue.
You can see it if you follow to the bug report. I uploaded an example.
I assume that postscript is what gets printed normally with
firefox/thunderbird. Conversion to pdf is ok.
Not sure anymore if i mentioned, but i tried it with different fonts. No
change.
So it must be the conversion for the printer or something. I don’t think
my setup is broken. Its pretty much a normal KDE install right now.
This happened also before prior to this version of openSUSE. For some
reason i don’t think it has anything to do with Linux per se. It looks
to me that it is Mozilla. But thats just my guess.

On 2011-10-18 01:18, JoergJaeger wrote:
> On 10/16/2011 06:43 PM, Carlos E. R. wrote:

>> Weird.
>> You must have something broken in your setup.
>
> Don’t know but what can break?

No, sorry.

> I assume that postscript is what gets printed normally with
> firefox/thunderbird.

Yes, like all programs in Linux.

> Conversion to pdf is ok.

which is not that normal: typically you convert from ps to pdf. They must
use a direct route instead.

I had a look at the files you uploaded. It is certainly weird.

> So it must be the conversion for the printer or something. I don’t think my
> setup is broken. Its pretty much a normal KDE install right now.
> This happened also before prior to this version of openSUSE. For some
> reason i don’t think it has anything to do with Linux per se. It looks to
> me that it is Mozilla. But thats just my guess.

Yes, but you are the only one with this problem… it must be a problem
triggered by some circumstance in your setup. I have no idea what.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/17/2011 05:08 PM, Carlos E. R. wrote:
> On 2011-10-18 01:18, JoergJaeger wrote:
>> On 10/16/2011 06:43 PM, Carlos E. R. wrote:

>> Conversion to pdf is ok.
>
> which is not that normal: typically you convert from ps to pdf. They must
> use a direct route instead.

Not sure how this works, but i thought it may be a different converter
or engine since it was working for pdf.

>
> I had a look at the files you uploaded. It is certainly weird.
>
>> So it must be the conversion for the printer or something. I don’t think my
>> setup is broken. Its pretty much a normal KDE install right now.
>> This happened also before prior to this version of openSUSE. For some
>> reason i don’t think it has anything to do with Linux per se. It looks to
>> me that it is Mozilla. But thats just my guess.
>
> Yes, but you are the only one with this problem… it must be a problem
> triggered by some circumstance in your setup. I have no idea what.
>

Honestly i wish i can find out. This is really annoying, especially if
it works with Windows. “Windows”.
I love Mozilla really, but this is just really sad. I think i mentioned it.

Well, let me see what the mozilla team has to say. Maybe they come up
with something. I have hope.


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 10/14/2011 05:09 PM, JoergJaeger wrote:
> I use thunderbird on Linux and Windows, and i noticed that if i print
> over windows everthing is correct.
> Under Linux thunderbird creates spaces between words and i don’t know
> why. It looks really bad.
> I don’t know if thunderbird has its own printing engine or if it uses
> the systems engine to print.
> Does anyone else have the same problem or just me?
>
> My stats
> Windows 7, openSUSE 11.4 x64 KDE 4.6 using a brother HL-2244D printer
> via cups.
>

Just an update.
I tried to reinstall cups and my drivers and even had the opendrivers at
one point.
But this did not solve the problem. It seems to be a mozilla problem.
Regardless which app i use (firefox/thunderbird/seamonkey) i get the
same results.
I realized that it actually looked like a linebreak or something. But
instead of a break a space is inserted.

So i am not sure if i am really the only user that has the problem or
simply no one else prints anything with like thunderbird.

If someone has some ideas, i’ll appreciate anything tossed at me and be
willing to try it out (except reinstalling the system).


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

On 2011-10-19 06:21, JoergJaeger wrote:
> On 10/14/2011 05:09 PM, JoergJaeger wrote:

> So i am not sure if i am really the only user that has the problem or
> simply no one else prints anything with like thunderbird.

But I print from FF. If it is one page directly, and if not I print to
file, then I print to paper the pages I want.

The important thing is that printing to postscript file also fails for you.
I don’t know what other tools FF or TB uses to do it that could be broken.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 10/19/2011 05:13 AM, Carlos E. R. wrote:
> On 2011-10-19 06:21, JoergJaeger wrote:
>> On 10/14/2011 05:09 PM, JoergJaeger wrote:
>
>> So i am not sure if i am really the only user that has the problem or
>> simply no one else prints anything with like thunderbird.
>
> But I print from FF. If it is one page directly, and if not I print to
> file, then I print to paper the pages I want.
>
> The important thing is that printing to postscript file also fails for you.
> I don’t know what other tools FF or TB uses to do it that could be broken.
>

Mm… i posted now photos of the printout, ps files. I did read on
MozillaZine that there is an issue with spacing which uses the parameter
format=flowed.
It does look like that there supposed to be a linebreak, but well you
know the rest.
To me it looks like this. If i can print with any other app fine (no
spacing) then it has to be logically mozillas fault.

There are some page that print fine with FF, others don’t. Like if i go
to a webpage that offers a printfriendly version. Not sure what format
there is used to generate that printfriendly text, but it ends up with
spaces near the end.
If i print directly from the webpage (no printerfriendly) than it prints
out fine.

You know i really love FF and TB, there are such good programs. But
sometimes it makes me cry. Especially if i can’t circle the problem. If
it would be a driver problem, fine. And it always can be a user problem,
i admit to that.


Euer Komputerfriek Joerg
using LXDE on 11.4 x64 and happy with a cup of real hot coffee…
Need help? Call 207.252.3.96 (really)

So i am not sure if i am really the only user that has the problem or
simply no one else prints anything with like thunderbird.

I do occasionally print stuff from Thunderbird, and so do others I know, much more frequently. I haven’t seen anything amiss in neither mine nor their printouts.

Have you tried printing from:
a) Another user account on the same system?
b) From a different Linux machine?
What were the results?

If someone has some ideas, i’ll appreciate anything tossed at me and be
willing to try it out (except reinstalling the system).

How about uninstalling and reinstalling just Thunderbird. It shouldn’t screw up you emails or config, but best to move them temporarily to a different directory while you do this, then you can also test what happens with a pristine profile.

Carlos mentions some samples you have apparently uploaded, but I cannot see any links. Grateful if anybody could point me to them.

On 2011-10-20 00:06, licehunter wrote:
> Carlos mentions some samples you have apparently uploaded, but I cannot
> see any links. Grateful if anybody could point me to them.

In the bugzilla.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)