[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDF output on http://www.linuxdoc.org/



On Apr 20, 12:10pm, Jerome Thebert wrote:
> Subject: PDF output on http://www.linuxdoc.org/
> Hi all,
>
> I'm using the linuxdoc DTD and the sgmltools to output my documents
> in text, html and PS which are very nice I think. I then use ps2pdf
> to generate the PDF outptut.
>
> But I notice that the PDF file at
> http://metalab.unc.edu/pub/Linux/docs/HOWTO/other-formats/pdf/
> where much nicer PDF file ( notably by using PDF bookmark and outline ).
> Can someone tell me what is the tool used to generate these PDF files ?

Sure. I setup the processing env and tools on our host machine
(for the LDP). Here's how the PDF and PostScript variants are created:

- Create a singular ("nochunk"'ed) HTML version:

     if DocBook DTD

	jade -t sgml -i html -V nochunks <howto>.sgml > <how_to>.html

     else if LinuxDoc

	sgml2html -c latin --split=0 <howto>.sgml

- Use htmldoc to create PDF/PostScript:

     htmldoc --size letter -t pdf -f <how_to>.pdf <how_to>.html
     htmldoc --size letter -t ps -f <how_to>.ps <how_to>.html

  NOTE: I intend to change the page size to "universal", which
        seemed like the consensus of the group.


Here's the tools/locations (note: these are not pre-compiled binaries) :

 =======================
 For support of linuxdoc:
 =======================

 sgml-tools 1.0.9 -
  ftp://ftp.us.sgmltools.org/pub/SGMLtools/v1.0/sgml-tools-1.0.9.tar.gz

 htmldoc (1.8.4) -
  ftp://ftp.easysw.com/pub/htmldoc/1.8.4/htmldoc-1.8.4-source.zip

 fltk 1.0.7 (required by htmldoc for their GUI; I built it anyway) -
  ftp://ftp.fltk.org/pub/fltk/1.0.7/fltk-1.0.7-source.zip

 ld2db  (a linuxdoc to docbook filter) -
  http://www.cl.cam.ac.uk/users/rrt1001/ld2db.zip

 ======================
 For support of DocBook:
 ======================

 Jade (1.2.1) -
  ftp://ftp.jclark.com/pub/jade/jade-1.2.1.tar.gz

 DSSSL (1.52) -
  http://nwalsh.com/docbook/dsssl/db152.zip

 Documentation for DSSSL is here:
  http://nwalsh.com/docbook/dsssl/db152d.zip

 DocBook Stylesheet documentation from a link found here:
  http://nwalsh.com/docbook/dsssl/

 DocBook DTD (3.1) -
  http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip

 Entities (you might need the *.gml files, a form of ISO entity files) -
   ftp://ftp.ornl.gov/pub/sgml/WG8/DOCS/

best regards,

-- 
Greg Ferguson     - s/w engr / mtlhd         | gferg@sgi.com
SGI Tech Pubs     - http://techpubs.sgi.com  | 
Linux Doc Project - http://www.linuxdoc.org  |


--  
To UNSUBSCRIBE, email to ldp-discuss-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org