Issue 7549 - cannot print text documents OpenOffice.org 643
Summary: cannot print text documents OpenOffice.org 643
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 643
Hardware: PC Linux, all
: P1 (highest) Trivial (vote)
Target Milestone: next build
Assignee: robert.kinsella
QA Contact: issues@gsl
URL:
Keywords:
Depends on: 7607
Blocks:
  Show dependency tree
 
Reported: 2002-09-06 16:38 UTC by robert.kinsella
Modified: 2003-06-30 11:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description robert.kinsella 2002-09-06 16:38:11 UTC
Linux RedHat 7.2 glibc 2.2.4, OpenOffice.org 643.


I am using a new machine and have configured the network printer using
printtool on Linux. I can test a Test Page using  spadmin.
However when I attempt to print a text document from OpenOffice.org, I get no
output.

(This  may be as a result of the printer not being set up correctly, but  as far
as I know it is, i.e. spadmin works correctly.
If this problem cannot be recreated elsewhere I will close it as not a bug.
Comment 1 robert.kinsella 2002-09-13 13:59:45 UTC
Confirmed this as a bug on RedHat6.2 (glibc 2.1.3)
OpenOffice.org1.0.1 works correctly, OpenOffice.org643 seems to
attempt to print document to printer, but fails.
Comment 2 robert.kinsella 2002-09-17 12:02:22 UTC
synopsis:-
Linux             - standalone mode   - fail
Linux              - network mode       - fail
Solaris8Sparc  - standalone mode - fail
Solaris8sparc  - network mode - pass.

Changing priority from 2 to 1
Comment 3 stefan.baltzer 2002-09-17 14:28:04 UTC
Robert [+ ALL]:
Better re-think such a summary next time, especially if you didn't
even try spreadsheets or presentations. It is not wrong, but it is a
misleading fraction of the truth. "Cannot print with oo.org 643c"
would even be shorter. 

Because too many people don't separate text app problems from general
problems AND the word processor is the "default application", too many
issues end up in my intray "automatically" although they have NOTHING
to do with the word processor (they only occur there, TOO).

Thanks for your comprehension.

Back to the problem:
I tried on COSIX Linux 3.1 (RedHat based, glibc 2.2.3) and oo.org 643c
failed to print in all applications, but only when using NON-TrueType
Fonts. After adding TT fonts with the spadmin (oo.org doesn't bring
them along, neither do most LINUXes) I could print. Known Bug
(Internal BugID = #103023).
Comment 4 stx123 2002-09-17 15:14:35 UTC
reassigning
Comment 5 Martin Hollmichel 2002-09-17 16:13:58 UTC
Herbert, please clarify, which files are affected.
Comment 6 hdu@apache.org 2002-09-17 16:42:38 UTC
There was a major cleanup that fixed these kinds of bugs 
once and for all. The problem is during the cleanup some 
other major fixes got in so it is interwoven. 
 
There are two alternatives: 
1) cvs update -A in vcl should be ok 
2) extract and branch the fix 
3) do a quick workaround hack 
 
2) and 3) would take quite some time for a problem that is 
already fixed in SRX643 mainline 
 
Comment 7 hdu@apache.org 2002-09-18 09:12:19 UTC
There doesn't seem to be much interest in alternative 1,  
so lets pursue alternative 3.  
  
The problem seems to be that for printer builtin fonts glyphids  
are emitted instead of character codes. This can be caused by  
vcl/unx/source/gdi/salgdi3.cxx -r1.87 in the function  
SalLayout* SalGraphicsData::LayoutText( const ImplLayoutArgs& )  
  
For some reason bEnableGlyphs seems to stay true even though the  
font should be recognized as builtin font (!=truetype). 
Investigating... though some help from somebody with an almost 
complete SRX643_OO build would be appreciated. 
Comment 8 sander_traveling 2002-09-19 14:09:49 UTC
there are complete builds on:
     * scslsparc1 for solaris sparc 
     * cdelab8 for linux/x86

would 'print to file' outputs both before and after
vcl/unx/source/gdi/salgdi3.cxx -r1.87 be of help ?
Comment 9 hdu@apache.org 2002-09-19 15:52:23 UTC
Thank you for the pointers to complete installations. This saved  
quite some time. A surprisingly simple fix was found that is a hack  
though.  
  
Please update vcl/unx/source/salgdi3.cxx to revision 1.87.2.1. 
  
Comment 10 robert.kinsella 2002-09-20 17:09:34 UTC
this is still broken in build 643b solaris sparc.
Now print fails in both standalone mode and in network install mode.
Comment 11 robert.kinsella 2002-09-20 18:10:29 UTC
this problem appears to be  intermittent, out of 5 attempts to print a
text document it worked once (standalone mode) . Note that I had been
running other tests between different print attempts. I cannot
recreate how to definitely make it print.
The statement above originally suggesting the problem was only
apparent on Solaris in standalone mode may well have been incorrect,
the intermittent nature of the problem may have caused it to appear
that way.
Comment 12 hdu@apache.org 2002-09-23 11:01:35 UTC
 I think I misunderstood the problem then:  
What exactly do you mean with "cannot print"? 
  
- Are text strings displayed wrongly? This should be fixed by the  
patch above.  
- Does print to file work and the display from ghostview looks ok?  
- Does OOo not even try to contact the printer?  
  
Please be as specific as possible.  
 
Comment 13 hdu@apache.org 2002-09-24 17:11:52 UTC
Please update the status. 
 
Comment 14 robert.kinsella 2002-09-24 17:53:46 UTC
this problem is now resolved - 
Comment 15 robert.kinsella 2003-06-30 11:44:30 UTC
fix verifed OO>org 1.1rc - closing issue