1

HI,

I'm trying to use HTML2PDF and after install and run the the convertion I'm getting this error:

ERROR: TCPDF ERROR: Could not include font definition file: consolas

I just include the example04.php into my php program and run. The code that I'm using are:

// récupération du contenu HTML
ob_start();
include(dirname(__FILE__).'/ArqComunicado.html');
$content = ob_get_clean();

// conversion HTML => PDF ArqComunicado.html
require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
try
{
$html2pdf = new HTML2PDF('P','A4', 'fr', false, 'ISO-8859-15', 5);
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output('exemple04.pdf');
}
catch(HTML2PDF_exception $e) { echo $e; }


I'm using Word2010, saving the file as "WebPage filtred" option.

The link are: http://www.imoveisplus.com.br/comunicado

The options are: 01. "Gera comunicado para o síndico"
02. "Identificação: 111"

Best regards and thanks for any help that you could give me,

Ronaldo
(ronaldol@cybernet.com.br)

2

ronaldol (./1) :
I'm using Word2010, saving the file as "WebPage filtred" option.


bang
Ancien pseudo : lolo

3

Thanks for your answer.

About the comment: "I'm using Word2010, saving the file as "WebPage filtred" option."

Users from the site, save docs in html format using Word2010, upload these files, that will be convert to pdf files to become avaiable on internet.

Thanks for any help,

Ronaldo

4

word make horrible HTML code...

on the main page of the web site :
This library has been made to assist in the creation of PDF files, not to directly convert an HTML page. Read carefully the examples.

Ancien pseudo : lolo