Open Bug 100571 (mozprinter) Opened 25 years ago Updated 3 years ago

Provide command-line functionality to convert a file/URL directly to PDF/PS/other printer output (html2printer)

Categories

(Core :: Printing: Output, enhancement)

x86
Linux
enhancement

Tracking

()

People

(Reporter: asp, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

html2ps is a program that converts HTML to PostScript. However, it's ancient, and doesn't do a very good job. Mozilla could provide a way to convert the HTML from a URL to PS so that it could be used as a general filter for printing, or making PDF's.
Reporter: Do you want some other functionality than is possible from print to file? Are you looking for the ability to run mozilla from the commandline and do something like: mozilla --htmltops test.html test.ps And not even have a GUI involved?
Severity: normal → enhancement
Yeah, that command line was the idea. The person I assigned it to asked me in #mozilla that I add it to bugzilla, so hopefully he still remembers. :)
The functionaliy is AFAIK already present in mozilla-viewer... but I did not had the time yet to investigate how it exactly works... > so hopefully he still remembers. :) I do, I do. :) Currently I try to catch up and answer all emails&co. which came in while I was sick... - sorry for the delay ;-/
Status: UNCONFIRMED → NEW
Ever confirmed: true
CC:'ing rods who said that viewer is dead beef. rods: Any idea how we can create a standalone html2ps converter without the need to open any windows ?
Status: NEW → ASSIGNED
Priority: -- → P5
Target Milestone: --- → mozilla1.1
Blocks: 87581
Attached patch "raw", unfinished version of mozilla2printer (obsolete) — — Splinter Review
Start it with % nice -n 19 ./run-mozilla.sh /opt/SUNWspro/FD 7/bin/dbx -c 'run -np -C -Prt 2 -o /tmp/Xp_tmp/ http://bugzilla.mozilla.org/' ./mozprinter to crawl througth all pages of http://bugzilla.mozilla.org/ and print them...
Attached patch Better patch for 2002-02-19-08-trunk (obsolete) — — Splinter Review
Just call it with - % ./run-mozilla.sh ./mozprinter $URL or - % ./run-mozilla.sh ./mozprinter -f file_with_urls_to_print.txt Example: ./run-mozilla.sh ./mozprinter http://www.mozilla.org/
Attachment #67689 - Attachment is obsolete: true
Requesting r=/sr= ...
Keywords: patch, review
Attachment #71128 - Attachment is obsolete: true
Target Milestone: mozilla1.1alpha → mozilla1.1beta
Target milestone has passed. How can we help to get this in the trunk?
This functionality is of big importance if Mozilla is to be used as a print (PDF)-server. I'd like to point that out here, because "html2ps functionality" might seem a bit too cryptic to recognize the importance of this bug or to even find it in the database. I had to search a lot to finally find it. Could someone perhaps add the words "print server" and "prepress" to the summary?
Blocks: 188478
Alias: mozprinter
No longer blocks: 188478
Summary: Mozilla should provide html2ps functionality → Mozilla should provide html2printer functionality
Blocks: 188478
Target Milestone: mozilla1.1beta → mozilla1.4beta
*** Bug 68721 has been marked as a duplicate of this bug. ***
Is this bug/enhancement still seeing active work? It looks like a working patch was provided but never it made into the trunk. Is there something that can be done to get things moving again?
Bug 5702 appears to be a duplicate of this one (or this one of that one as the case may be). This bug has more discussion and a patch, however, which bug 5702 doesn't.
Please keep this project alive. There is a serious lack of backend tools for html->ps or html->pdf conversion, especially tools that support CSS and client-side generated content. Mozilla does this wonderfully when printing in the client, but the GUI and user interaction is not always desired. Mozprinter would be a wonderful tool to have on the backend.
Barnabas Wolf wrote: > Please keep this project alive. This all depends on whether the webshell/tests/viewer/ codebase will be alive in the next few milestones.
in my opinion mozprinter makes sense as a separate tool. The convolutons a2ps went through with netscape 4.77 were klugey. Something that is a drop-in replacement for html2ps but that uses the current gecko should, imo, be a simple matter of linking in the library and reading its reference documentation. For instance I am worried (not having played with it yet) that the interface described at http://www.mozilla.org/projects/embedding/embedapiref/embedapi9.html#1148946 is going to "bring up a print dialog" rather than rendering postscript. The tool would hopefully be pretty short and would use frozen gecko interfaces only.
david nicol wrote: > The tool would hopefully be pretty short and would use frozen gecko interfaces > only. That's only wishfull thinking. You have to use a bunch of non-frozen interfaces for printing anyway... that's unavoidable right now and for the forseeable future.
Target Milestone: mozilla1.4beta → Future
*** Bug 5702 has been marked as a duplicate of this bug. ***
*** Bug 244261 has been marked as a duplicate of this bug. ***
I'm keen on getting my hands on this utility. Is mozprinter available in the mozilla distribution?
*** Bug 300295 has been marked as a duplicate of this bug. ***
*** Bug 270582 has been marked as a duplicate of this bug. ***
For the record, I needed this functionality and went ahead and quickly hacked something up, using xulrunner: http://michele.pupazzo.org/mozilla2ps/ It's obviously no substitute for a decent integrated solution, but it does help meanwhile.
*** Bug 331122 has been marked as a duplicate of this bug. ***
wow, lots of duplicates, duplicates of duplicates, plenty of votes, and promises to work on it dating back to 1999, and it's still only P5? i think those factors indicate that this job should be a much higher priority.
Seven bugs filed in seven years (one of the dupes is from 1999) really isn't that much for a feature. Making printing from the browser work properly takes a vastly higher precedence than building a way of automating printing on linux, at least in a limited-resource world.
there are at least as many duplicates of duplicates, and i certainly wasn't trying to claim that this is higher priority than some specific other task. keeping this issue P5 means to me it will never be gotten to. i obviously can't direct the use of moz developers' resources, just want to disagree with the prioritization here.
I can certainly "fix" the P5... Roland isn't going to fix this (viewer is dead anyway), so resetting everything.
Assignee: roland.mainz → printing
Status: ASSIGNED → NEW
Priority: P5 → --
QA Contact: sujay
Target Milestone: Future → ---
Google for "gnome-web-photo gnome-web-print". I don't know how well it works right now but it's the way to go.
In fact, arguably this bug could be closed now that gnome-web-print exists.
What would it take for that to get into the mozilla tree?
Do we really want that in the Mozilla tree?
I can't speak to the code quality, but it seems like useful, frequently requested functionality.
The fact that gnome-web-print exists does not mean that this bug should be closed any more than the fact that Internet Explorer exists means that Firefox development can be halted. Just because someone else is doing something does not mean that Mozilla cannot do it better.
I want to add "student-project" to the keywords but the keywords input is not active for this bug, so I'm adding this comment instead.
Assignee: printing → nobody
QA Contact: printing
gnome-web-print seems to require an X server, so it is not a real alternative for server side HTML->PS conversion.
Possible work around for those missing this feature: wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/), command line print plugin (https://sites.google.com/site/torisugari/commandlineprint2).
Summary: Mozilla should provide html2printer functionality → Provide command-line functionality to convert a file/URL directly to PDF/PS/other printer output (html2printer)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: