Closed Bug 71669 Opened 24 years ago Closed 23 years ago

Xprint does not render XML+CSS pages correctly (books.xml)

Categories

(Core Graveyard :: Printing: Xprint, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: roland.mainz, Assigned: roland.mainz)

References

()

Details

Attachments

(3 files)

moz_2001-03-09-08-Mtrunk Xprint module does not render most pages correctly.
Maybe the best example how things can get really worse is
http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml (toggle style to
see book pictures&descriptions, then try to print. I'll attach a GIF...) - but
other pages like http://www.yahoo.de/ do not look much better... ;-(

"Native PostScript module" prints these pages correctly...
Sorry... I forgot to CC: Don Cone... ;-(
Attached image result on Solaris 8 U3
I got the different result on Solaris 8 U3. However, it still doesn't
render properly. Roland, have you started hacking the Xprint codes?
> I got the different result on Solaris 8 U3. However, it still doesn't render
properly.

http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml is a XML+CSS
demo which has embedded HTML controls to allow the user to display the same
(XML) document using two totally different stylesheets.
Your snapshot is from (initial) "list" view, my image is from view after
switching to "full description with images" view via hitting the "Toggle CSS"
button.

> have you started hacking the Xprint codes?
Yes, I have some fixes in my tree, primary the collected recent source patches
and fixes for libXp support (printer selection by name/name:display, use of
XPSERVERLIST, waiting for End(Page|Job) events, job title and some other
(minor/major) flaws... but nothing on the rendering engine itself - I need some
time to understand why Mozilla does so many "interesting" things (which X11 does
not have) in it's rendering stuff. Without exact understaning why what happens
it's hopeless to hunt such bugs...

Unfortunately I do not have the big RAID anymore (the institute here is going to
be dismanteled and removed from history, getting aproval for new hardware in a
dead institute is difficult (and a "shiny"(hint :-) place I'd like to join
currently has a total "freeze on hiring"... ;-( )), e.g. no disk space to build
the Mozilla. All stuff is currently backed-up on the big tapeworm... but I need
diskspace to continue development... ;-(( I'll try to get rid of this issue...

Fixing "Summary" to be little bit more usefull... :-)
Summary: Xprint does not render pages correctly → Xprint does not render XML+CSS pages correctly (books.xml)
OK, great. Please continue to work on the codes.
I'd like to try hacking rendering codes.
> Please continue to work on the codes

Sure... today it rains cats&dogs - tomorrow it will rain 9GB harddisks (sorry, I
couldn't resist =:-)

I try to find a solution...
> OK, great. Please continue to work on the codes.
> I'd like to try hacking rendering codes.

Basically it sounds nice - but currently it looks that I am the only one who's
working on the code (I found a temporary workaround my local limitations here...
:-) - currently I feel a little bit stupid being the old one pulling on the
rope. Xprint is a very nice piece of technology - from both user and
adminstration side. The server-side configuration - and the ability to configure
the client side based on these infos and offer only useable printer options -
solves many headaches in large networks - we tested this here with great
success... one more issue why I can't understand why noone wants to invest more
time into Mozilla's Xprint module than into the crappy PS module... ;-(


----

Back to work:
This bug may be caused by the same issue as bug 72216...
Adding refs. to Xprint meta bug 72087...
Blocks: 72087
Assign to Roland
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
I still have no clue how to fix this... ;-(

...but...

Accepting bug... but I need _help_...
Status: NEW → ASSIGNED
Depends on: 78548
Fix in bug 83242 - but output needs to be compared to native PS module output...
Depends on: 83242
Fixed by patch in bug 83242...
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
The page could be rendered mostly. Marked this as VERIFIED.

However, the texts are drawn outside of textare. Roland,
is this new problem? Should I file new bug?
Status: RESOLVED → VERIFIED
Attached image outputs from 2002011614
I filed bug 117972 for the issue that books.xml cannot be printed anymore (some
months ago we printed that page perfectly...) ...
Comment on attachment 65393 [details]
outputs from 2002011614

katakai:
This output looks weired:
- It seems that you're not using printer buildin fonts (may be a good item for
the docs how to configure that - or better: We should change the default config
to use the common "buildin" fonts by default)
- The HTML form buttons are very large (which DPI do you use ?)
What's DPI? screen or Xserver?

I'm using Linux, it's 75x75 and Xprt server is running on
Solaris. Here is output of xdpyinfo.

  dimensions:    4200x4200 pixels (357x357 millimeters)
  resolution:    299x299 dots per inch
  depths (2):    24, 8
  root window id:    0x25
  depth of root window:    8 planes

Actually, I get PostScript codes with builtin fonts (not
images) when I try another URL. However, it doesn't for
this URL.
Masaki Katakai write:
> What's DPI? screen or Xserver?

Xprt's DPI for this printer (xdpyinfo isn't a help here, it only shows the
maximum DPI configured for a DDX's screen. May be a good idea who hack xdpyinfo
and fix thaht...).

You can get the printer resolution from Mozilla's side via the NSPR logging
stuff:
Set
% export NSPR_LOG_MODULES=nsXPrintContext:5
before starting the Zilla to enable some debug output in Xprint module (this
code is enabled even for non-debug builds except the binary was build with
--disable-logging).
The following line should appear somewhere at the beginning after starting the
print process:
-- snip --
1[3d918]: print resolution 300
-- snip --
(the "1[3d918]:" is variable...).

> Actually, I get PostScript codes with builtin fonts (not
> images) when I try another URL. However, it doesn't for
> this URL.

Weird. Very weird... ;-((
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: