After converting spreadsheet html file to PDF some text is squished together

Question:

I have a table in HTML format, and when I convert to PDF using HTML2PDF module, some of the text is too close together. How can I improve this?

We create the HTML file, so we can modify it.

Answer:

First, you should make sure landspace mode is enabled.

HTML2PDF.SetLanscape(true)

http://www.pdftron.com/pdfnet/docs/PDFNet/?topic=html/M_pdftron_PDF_HTML2PDF_SetLandscape.htm

Then you can do the rest via CSS, both increasing the font size, but also ensuring there is no negative letter-spacing being applied.

You can also use the @media print to separate CSS for screen versus print. If you do this, then be sure to set HTML2PDF to use print media mode (default is screen)

HTML2PDF.WebPageSettings.SetPrintMediaType(true)

http://www.pdftron.com/pdfnet/docs/PDFNet/?topic=html/M_pdftron_PDF_HTML2PDF_WebPageSettings_SetPrintMediaType.htm