stupid html question

Tony Alfrey tonyalfrey
Sun Sep 5 16:12:05 PDT 2004


On Sunday 05 September 2004 02:47 am, Roger Oberholtzer wrote:
> On Sun, 2004-09-05 at 04:41, Chong Yu Meng wrote:
> > Hi Tony,
> >
> > If you want PDF without shelling out for Adobe Acrobat, you might
> > want to look at DocBook (http://www.docbook.org/). If you're using
> > Fedora/Red Hat, it is relatively easy to generate nice looking
> > PDF's using just a text editor and XML. The learning part is tough,
> > though. Or you could use Open Office, though I haven't tried the
> > PDF function there myself.
> >
> > Tony Alfrey wrote:
> > >On Saturday 04 September 2004 01:43 pm, Net Llama! wrote:
> > >>On 09/04/2004 01:45 PM, Tony Alfrey wrote:
> > >>>Hi;
> > >>>
> > >>>I have composed an html page with various gif and jpg files
> > >>> linked in the html source.  But I would like to send the whole
> > >>> composed page to a friend as one "file" so that when it is
> > >>> opened, it is "self-contained", as opposed to the html page and
> > >>> the gif and jpg files located in the same directory as the html
> > >>> source. Is it possible to do such a thing?
> > >>
> > >>Not with HTML.  You might try converting the page to a PDF.
> > >
> > >That's exactly what I thought, also with regards to converting to
> > > a PDF. I will try that.
> > >Thanks!

> Two easy ways:
>
> In your browser, print the page to a file. It will be PostScript.
>
> Then, do:
>
> 	ps2pdf the_file.ps
>
> This will create the_file.pdf

Not too bad.  I have to be careful about which browser I open up the 
html document in.  Konqueror makes a mess of the fonts, but Netscape 7 
adds stupid headers and footers.  Must be some switch I can use to turn 
that off.  Netscape 4.6 seems to look the best, Text Maker doesn't read 
the html properly (I'd better check the html composition, though).  
Word Perfect makes a total mess of the html.

>
> Your system may even have a PDF printer queue (SUSE does). It
> automates these steps, but does basically the same thing.

It goes through Konqueror which does not look great, but that's on my 
old Caldera partition.

>
> The other way is to open the html file in OpenOffice. From there it
> should be possible to export to PDF. If not (depends on your
> version), you can repeat the steps above: print to a file and convert
> with ps2pdf.
>
OpenOffice gets the font very wrong; probably just have to install the 
right fonts somewhere.  The best result so far seems to be old Netscape 
and then do the ps to pdf conversion.  Results seem to be comparable to 
what I get if I do this all in Acrobat on Windboze, so the end result 
is good.

Thanks!


-- 
Tony Alfrey
tonyalfrey at earthlink.net
"I'd Rather Be Sailing"


More information about the Linux-users mailing list