[Techtalk] DocBook SGML to PDF conversion
Dushyanth Harinath
dushy at symonds.net
Thu Jul 11 18:36:49 EST 2002
Hi ,
* <daniel.richter at wimba.com> wrote from a remote bunker :
[...]
> ! Emergency stop.
> l.1 \FOT
> {3}\Seq%
> No pages of output.
> Transcript written on Stuff.log.
>
> I also can't convert DocBook to PS or DVI.
>
> So if anyone has a solution, I would be glad to hear it.
>
Here's what i did (url's may wrap), the instructions are crude :)
1) Get
http://cvsview.tldp.org/index.cgi/*checkout*/LDP/builder/ldp_print/ldp_print?rev=HEAD&content-type=text/plain
http://cvsview.tldp.org/index.cgi/*checkout*/LDP/builder/ldp_print/fix_print_html.lib?rev=HEAD&content-type=text/plain
2) download and install htmldoc (http://www.easysw.com/htmldoc/)
3) Edit ldp.dsl and change it according to the below link
http://tldp.org/LDP/LDP-Author-Guide/usingldpdsssl.html
4) First generate a single html file from the sgml document.
# jade -c /etc/sgml/catalog -t sgml -i html -V nochunks -d \
/home/dushy/doc/final/ldp.dsl\#html \
doc.sgml > doc.html
Change /etc/sgml/catalog to the location of SGML catalog and also
change the path to ldp.dsl according to your setup.
5) Use ldp_print to generate the PDF file.
# ldp_print doc.html
This will create doc.pdf in the current directory.
HTH
cheers
dushyanth
--
Morpheus: Throughout human history, we have been dependent on machines
to survive. Fate, it seems, is not without a sense of irony.
http://symonds.net/~dushy
More information about the Techtalk
mailing list