Closed
Bug 412909
Opened 18 years ago
Closed 17 years ago
SVG printing completely broken (3.0beta2)
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: cedric, Unassigned)
Details
Attachments
(5 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2
If you try to print the SVG file that I will attach shortly,
The output is unusable. There are the following problems:
1) Only the top 20% of the SVG is drawed, the rest of the page is empty.
2) There are huge/useless margins on the top.
3) The rendering itself of the 20% of the SVG shown is ugly.
This works fine with Safari. To show the problem, I will attach the SVG,
and the output (print-to-pdf) PDFs generated by Firefox 3beta2 and Safari
Note: Thanks for the improved handling of SVG in FF3. The same SVG would
crash/hang FF2.
Reproducible: Always
Steps to Reproduce:
1. Open the attached SVG
2. Do a print and/or preview
3.
| Reporter | ||
Comment 1•18 years ago
|
||
image/svg+xml gzipped to work around 300k limitation
| Reporter | ||
Comment 2•18 years ago
|
||
| Reporter | ||
Comment 3•18 years ago
|
||
| Reporter | ||
Comment 4•18 years ago
|
||
I don't know how to specify version 3beta2, it's not in the version
list, so I'm selecting trunk and putting that info in title.
Summary: SVG printing completely broken → SVG printing completely broken (3.0beta2)
Version: unspecified → Trunk
Comment 6•18 years ago
|
||
I'm making a note here...
CONFIRMED with latest nightly.
Full BuildID: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b3pre) Gecko/2008011704 Minefield/3.0b3pre
Comment 7•18 years ago
|
||
More notes:
The first two notes that Cedric made ("only 20% drawn", "ugly margins") are confirmed in the above noted build. However, the rendering of the portion of the SVG that is actually shown is cleaner than that of what Cedric's attachments demonstrate. Nevertheless, SVG printing is still broken as the bug lists.
Attaching PDF example of printing under b3pre buildid: 2008011704 to show cleaner printing.
Comment 8•18 years ago
|
||
Comment 9•18 years ago
|
||
Can you produce a minimal testcase please? I.e. something around the 1-2k mark. There are various open printing SVG bugs and this may be a duplicate.
| Reporter | ||
Comment 10•18 years ago
|
||
Actually, no, I cannot easily, the SVG in not generated manually, but through JFreeChart+Batik.
Furthermore, I generated a big SVG on purpose, because in FF2 at least, relatively big SVG like
this one just hang+crash the browser. I think testing with big files is very important too.
Btw, I don't know if the hang/crash is worth fixing in FF2. Personally I don't care, I'll use FF3
as soon as it comes out, but still, hang/crash (which will kill all your open windows+tab) like
this with valid data is bad....
Comment 11•18 years ago
|
||
Testing with large files is fine but that is not the point of this bug which is that SVG printing has issues.
Comment 12•18 years ago
|
||
Cedric, we'll really need a reduced testcase to figure out what exactly is causing the printing issue. I'm not that familiar with SVG so reducing that large of a file would be far too time consuming. Can you please take a stab at reducing it?
Comment 13•18 years ago
|
||
I'm posting a testcase around ~4KB, its just a simple polygon SVG that I found (since I have no experience with SVG personally). In looking for a smaller testcase, though, I noticed that the behavior is fairly random...at least I couldn't find any discernible pattern that makes some SVG files partially render and others not. Here it is, anyway.
Comment 14•18 years ago
|
||
Did I say 4KB? I meant 400 bytes, gotta stop multiplying by a factor of 10.
| Reporter | ||
Comment 15•18 years ago
|
||
cool!
Comment 16•17 years ago
|
||
Cedric, do you think you could generate a smaller copy of the graph or maybe a less-complex graph generated by the same program? Need to make sure we aren't addressing multiple SVG bugs with a single report.
| Reporter | ||
Comment 17•17 years ago
|
||
I'm totally overbooked right now, sorry. still working at 11PM here,
wakeup at 5AM, you see the picture. But I think your reduced case is
fantastic and look the same problem.
Is there nobody that can confirm that bug btw?
Comment 18•17 years ago
|
||
Switching this out of Firefox->General into Core->SVG and confirming.
Status: UNCONFIRMED → NEW
Component: General → SVG
Ever confirmed: true
Flags: blocking-firefox3?
Product: Firefox → Core
Comment 19•17 years ago
|
||
Did I say Core->SVG? I meant Core->Printing.
Component: SVG → Printing
QA Contact: general → printing
| Reporter | ||
Comment 20•17 years ago
|
||
This is still broken in FF3beta3. I think it should really be blocking 1.9.
Flags: blocking1.9?
Comment 21•17 years ago
|
||
Both the minimal testcase and your large graph are now worksforme under trunk, so it must have been fixed by something between Beta 3's code freeze and now because it does in fact still appear in Beta 3. You can test it if you like - http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/.
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: blocking1.9?
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•