baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: sindi keesan <keesan AT sdf.lonestar.org>
- To: lforrestster AT gmail.com, baslinux AT lists.ibiblio.org
- Subject: Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 15
- Date: Mon, 22 Jan 2007 17:22:28 +0000 (UTC)
HTMLdoc:
Keeping in mind that this a debian package, it looks like the xlibs are
needed:
$ ldd `which htmldoc`
libfltk.so.1 => /usr/lib/libfltk.so.1 (0x4002e000)
300K
Not by the SW4.0 ghostscript, just by the one I compiled.
libpng.so.2 => /usr/lib/libpng.so.2 (0x40152000)These three are also used by ghostscript.
libz.so.1 => /usr/lib/libz.so.1 (0x4017d000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4018f000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401ae000)
73K
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x4036a000)
492K
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x403e5000)
431K
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
(0x40454000)
288K
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404a3000)
725K
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4055d000
33K
Gs itself is at least 2MB so even with fewer libraries it might still
require more space. But it will also print various image formats, etc.
And work with more printers than pbmtolj and pbmtoeps.
These libraries add to about 1.2M (even without the three image format libraries) and gs for SW4.0 is only 1.3M (plus about 800K of small files and probably some fonts). I don't think gs can convert html to anything so could not print formatted web pages from Opera. But maybe html2ps could be ported from perl to ash.
Once you have the PDF doc, isn't that all you need to print it?
I need pdftopbm (from xpdf, CLI, works in BL3) and then pbmtolj (from BL3 netpbm, has one library dependency).
Either htmldoc or gs is needed to produce the pdf file from html or ps.
It might be worth trying to compile htmldoc statically with some of these
odd libraries. Would this make it smaller than a dynamic version plus the
libraries?
I don't think you could just pick some of the libraries it needs and compile
it statically. Have to be all of them. Or at least all you needed.
It could probably be compiled statically with uclibc, but would still be
larger than any dynamic arrangement.
There might be a way to leave out the GUI part and use less libraries.
[delete]
I'm wondering whether it is necessary to convert to PDF. Don't all printers
accept PS? (they do down at Kinko's). PS is plain text.
I'm still wondering that.
Cheaper printers do not print ps, which is why gs was invented. We had a couple of very large broken laserjets that theorectically printed ps directly. Kinko's uses expensive new printers. If I tried to print a ps file I would get garbage, either text garbage or garbage due to it interpreting control characters wrong (such as beeps).
I can print ps either directly with ghostscript, or by converting to pdf (with gs) and thence to pbm (with pdftopnm) and then printing the pbm (pbmtolj from netpbm), all root.
The second method (at least for scanned files) is faster.
Sindi
Lee
-
Re: [BL] BL3 as 'user' D
, (continued)
- Re: [BL] BL3 as 'user' D, sindi keesan, 01/20/2007
- Re: [BL] BL3 as 'user' D, Ron Clarke, 01/21/2007
- Re: [BL] BL3 as 'user' 12, Lee Forrest, 01/20/2007
- Re: [BL] BL3 as 'user' 12, sindi keesan, 01/21/2007
- Re: [BL] BL3 as 'user' 13, Lee Forrest, 01/21/2007
- Re: [BL] BL3 as 'user' 13, sindi keesan, 01/21/2007
- Re: [BL] BL3 as 'user' 13, sindi keesan, 01/21/2007
- [BL] HTML to PDF/PS (was: BL3 as 'user') 14, Lee Forrest, 01/21/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14, sindi keesan, 01/21/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 15, Lee Forrest, 01/22/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 15, sindi keesan, 01/22/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 15, Ron Clarke, 01/22/2007
- [BL] mplayer, 3aoo-cvfd, 01/22/2007
- Re: [BL] mplayer, sindi keesan, 01/23/2007
- Re: [BL] mplayer, Samual Acorn, 01/24/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 19, Lee Forrest, 01/22/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 19, sindi keesan, 01/23/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14, Ron Clarke, 01/22/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14, sindi keesan, 01/23/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14, sindi keesan, 01/22/2007
- Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14, sindi keesan, 01/22/2007
Archive powered by MHonArc 2.6.24.