Prev | Current Page 216 | Next

David Berube

"Practical Reporting with Ruby and Rails"

) Incidentally, if you??™re worried about
modifying another application??™s database, don??™t be. Most applications are well behaved enough not to touch
tables they don??™t recognize. (You could store the table in a different database or in an external file, but that,
in my opinion, is additional work for little or no gain.)
Creating PDFs from HTML Documents
For this example, you will use the open source utilities html2ps and Ghostscript to create
PDFs from HTML documents. This approach has the advantage of being very easy to learn.
However, html2ps is slower than using LaTeX, which was demonstrated in Chapter 6. LaTeX
also has more powerful control over the output, since html2ps is limited to a subset of
HTML??™s formatting capabilities. However, when you don??™t need LaTeX??™s additional power,
you can quickly create PDF reports using the html2ps/Ghostscript combination.
html2ps generates only PostScript files, so you??™ll need another tool, ps2pdf, to convert
those PostScript files into PDF files. ps2pdf is included with Ghostscript, which is
available for most popular operating systems, including Windows, Linux, and Mac OS X.


Pages:
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
noclegi w górach gospodarka maszyna smitha Bank kredyt hipoteczny imprezy integracyjne dla firm