Install xsltproc
- Go here to download iconv, zlib, libxml2 and libxslt.
- Decompress all the files downloaded.
- Put the folder path of iconv.exe, libxml2.dll, xsltproc.exe and zlib1.dll in the environment variable PATH.
- Open Command Prompt and run xsltproc.exe. It should show something similar to the following:
C:\>xsltproc -version Using libxml 20630, libxslt 10122 and libexslt 813 xsltproc was compiled against libxml 20630, libxslt 10122 and libexslt 813 libxslt 10122 was compiled against libxml 20630 libexslt 813 was compiled against libxml 20630
Install Apache FOP
- Go here to download fop (e.g. fop-0.95-bin.zip).
- Decompress fop (e.g. fop-0.95-bin.zip).
- Put the folder path of fop.bat in environment variable PATH.
- Open Command Prompt and run fop.bat. It should show something similar to the following:
C:\gpl\docbook\fop-0.95>fop -v FOP Version 0.95 ...
Generate your first PDF docbook
- Go here to download the latest version of docbook-xsl (e.g. docbook-xsl-1.75.2.zip).
- Decompress docbook-xsl downloaded.
- Download MyFirstDocbook.xml, a sample docbook file.
- Open Command Prompt and run the following commands(Note:Change the paths accordingly):
C:\>xsltproc X:\path_to_docbook-xsl_folder\fo\docbook.xsl X:\path_to\MyFirstDocbook.xml > MyFirstDocbook.fo C:\>fop MyFirstDocbook.fo MyFirstDocbook.pdf