Skip to Content.
Sympa Menu

baslinux - Re: [BL] HTML to PDF/PS (was: BL3 as 'user') 14

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • 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') 14
  • Date: Mon, 22 Jan 2007 06:40:33 +0000 (UTC)

On Sun, 21 Jan 2007, Lee Forrest wrote:

htmldoc is available as open source 3.2MB tar.bz2 download. It can
be used as GUI or CLI or in batch mode or from a webpage.

Keeping in mind that this a debian package, it looks like the xlibs are
needed:

$ ldd `which htmldoc`
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4001e000)
libfltk.so.1 => /usr/lib/libfltk.so.1 (0x4002e000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4007c000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4008b000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40152000)
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)
libm.so.6 => /lib/libm.so.6 (0x401c3000)
libc.so.6 => /lib/libc.so.6 (0x401e6000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40319000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x4036a000)
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x403e5000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
(0x40454000)
libdl.so.2 => /lib/libdl.so.2 (0x4049f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404a3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4055d000


The dependencies for Slackware 4.0 ghostscript are the two svgalib libraries:

libvga.so.1
libvgagl.so.1
(which I just packaged together with the newzgv from BL1 and uploaded to http://keesan.freeshell.org/bl/zgv-bl3.tgz)

libc.so.5
libm.so.5

Slackware 4.0 gs was compiled not to require X, and uses svgalib to display files instead. gs itself is 1.3MB, there are another 863k of files in one directory and documentation. And you probably need more than the basic font selection that I packaged for use with the xpdf CLI programs because I don't have it displaying anything with fonts yet, tho I made a symlink to /usr/share/ghostscript/5.10/fonts from /usr/local/share... (where xpdf programs were looking for the fonts).
It displayed a scanned image file and zeroline.ps.

ps2pdf may be working but I cannot view the output with gs (or any other pdf file) yet.

gs seems far smaller or at least simpler than HTMLDOC-cum-dependencies and should be adequate to print the output of Abiword, either as user with printcap and lpr, or as root after producing a ps file with Abiword and then using the gs-based pstopdf|pdftoppm|pbmtolj > /dev/lp0 (pdftoppm - xpdf, pbmtolj - netbbm)

Opera will save as HTML or plain text, but not as ps. To print webpages as 'root' with formatting and images, you would need Phoenix (or later incarnations) and use Ron's method to save as ps and then use gs's pstopdf etc. Firefox is rather slow on 200MHz computers even with 64MB RAM.
Maybe there is some smaller program to convert html to ps?

I will try to understand David's explanation of lpr and groups etc. and maybe print as root eventually with lpr/gs.

I never had the urge to print a formatted webpage without converting it to plain text first, which links does well enough. If I really need bold, underline, or centering, I print with Wordperfect 5.1 for DOS. Netpbm prints images directly.

gs does not need kernel 2.4.

This modem works perfectly in BL3 with 2.2.26 (ppp.o), but disconnected almost immediately with 2.4.31 due to a bug in ppp (ppp_generic.o and ppp_async.o) in 2.4 and 2.6 though 2.4.31 worked in BL2.

2.4 seems to be a lot buggier than 2.2. We can use DOS usb-storage for file transfers before booting into linux. The USB storage devices are all formatted FAT anyway. Package all your files with tar or makepkg to avoid chopping off file names.

The person who wants a free computer for her neighbor's son to use for school work admitted that she really wants it so she and the neighbor can play online games with each other, which probably rules out not just linux but also our computers. They just want what everyone else has and don't have money for an internet connection but will save up for a new computer.

Sindi




Archive powered by MHonArc 2.6.24.

Top of Page