|
NAMEdenature -- A script to convert an html file to an xsl-fo file, then using FOP, to a pdf.SYNOPSISdenature [-i dir] [-c dir] [-l] [-s] [-f] [-e] [-w] [-d] [-p] [-t] [-h] <input file> <output file>DESCRIPTIONdenature will parse through the given HTML file and produce a roughly equilavent PDF file. denature should be able to recognize most HTML files, but if the file is significantly ill-formed the parser may have problems.denature can add page breaks into the output pdf file. The placement of the page breaks is controlled by comments inside the HTML file. When a page break is desired place a <!-- PAGEBREAK --> command and a new page will be started before the next block of text. This can have funny consequences if the pagebreak is place inside a table data cell, so be careful where the break is placed. OPTIONS
ENVIRONMENTThere are several external dependancies which denature requres to execute. They are:
The perl modules should be available through CPAN http://www.cpan.org, while FOP is available from http://xml.apache.org/fop/index.html. Once all the requirements are installed two variables at the top of the denature script need to be set to the FOP and JDK install directories. The variables are:
Once these variables are set denature should work correctly. LIMITATIONSdenature does not currently handle all of HTML. As unknown tags are encountered they are added in.Not all <form> elements are handled, or only handled if the SVG flag is passed. The others could be added, I just have not had time. Current text fields just have there values printed, they could have boxes drawn around them in the future. The CSS support in denature only supports the simple items of TD.style or .style. VERSIONThis is denature 0.6.5.AUTHORdan sinclair <dan.sinclair@treklogic.com>
Visit the GSP FreeBSD Man Page Interface. |