01-26-2008, 06:39 PM
I've written a Python script that parses at large set of mass spec data. I've formatted the output as HTML, but it will be 100's of pages, so opening these HTML files in a browser is impractical.
I've spent the morning getting html2ps and ps2pdf working (and a PHP script called HTML_ToPDF that I found) - it works find for modestly sized HTML files.
But anything large, the program takes way to long. In fact, I am testing it on moderately sized file now (13 meg HTML file), and ps2pdf has been running for 20 minutes. Although this is keeping my legs quite warm, this solution is also impractical. The final HTML file will 5 times this size.
So, I'm trying to think of other options. The ideal output would be PDF, since that would render fast and be browser independent. I tried a python-based HTML2PDF conversion tool, but it did not work well.
So, other ideas? Should I try to use LaTeX and produce the postscript directly? I like the HTML idea, because it is easy for me to format and color my table output.
Any other thoughts?
Thanks.
I've spent the morning getting html2ps and ps2pdf working (and a PHP script called HTML_ToPDF that I found) - it works find for modestly sized HTML files.
But anything large, the program takes way to long. In fact, I am testing it on moderately sized file now (13 meg HTML file), and ps2pdf has been running for 20 minutes. Although this is keeping my legs quite warm, this solution is also impractical. The final HTML file will 5 times this size.
So, I'm trying to think of other options. The ideal output would be PDF, since that would render fast and be browser independent. I tried a python-based HTML2PDF conversion tool, but it did not work well.
So, other ideas? Should I try to use LaTeX and produce the postscript directly? I like the HTML idea, because it is easy for me to format and color my table output.
Any other thoughts?
Thanks.