[Zope] [possibly OT] html2pdf on zope
Bob Corriher
bobc@p-wave.com
Wed, 19 Mar 2003 17:47:18 -0500
--------------060808020109020205030307
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi Bo,
My bad. I didn't mean that HTMLDoc wouldn't work on Linux, just that the
'b' parameter to popen2 probably isn't the problem, as it is the default
in the Linux python library.
I've had good success with HTMLDoc for most projects. I do use ReportLab
for database type reports, but not where I already have HTML code
generated as HTMLDoc does a much better job of that. It does not support
CSS however, so I sometimes have to generate alternate HTML using the
<FONT> tag and other "standard" HTML constructs.
You're right about parsing with Reportlab. I originally started using
HTMLDoc when some of our users began embedding HTML in content and it
became more and more difficult to handle the tags in Reportlab.
I'm not sure if Unicode will cause you a problem in HTMLDoc as I've not
had to use it.
Reportlab and HTMLDoc are the only PDF generation tools I've used and I
don't know of any others.
Bob Corriher
P-Wave Inc.
Bo M. Maryniuck wrote:
>On Wednesday 19 March 2003 18:47, Bob Corriher wrote:
>
>
>>If you're on Linux or Unix, this probably isn't the answer.
>>
>>
>Have you good solution to use Unicode with it? I would not like to start
>coding a parser with ReportLab. But if no solution, I will... :/
>
>
>
--------------060808020109020205030307
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
<br>
Hi Bo,<br>
<br>
My bad. I didn't mean that HTMLDoc wouldn't work on Linux, just that the
'b' parameter to popen2 probably isn't the problem, as it is the default
in the Linux python library.<br>
<br>
I've had good success with HTMLDoc for most projects. I do use ReportLab
for database type reports, but not where I already have HTML code generated
as HTMLDoc does a much better job of that. It does not support CSS however,
so I sometimes have to generate alternate HTML using the <FONT> tag
and other "standard" HTML constructs.<br>
<br>
You're right about parsing with Reportlab. I originally started using HTMLDoc
when some of our users began embedding HTML in content and it became more
and more difficult to handle the tags in Reportlab.<br>
<br>
I'm not sure if Unicode will cause you a problem in HTMLDoc as I've not had
to use it.<br>
<br>
Reportlab and HTMLDoc are the only PDF generation tools I've used and I don't
know of any others.<br>
<br>
Bob Corriher<br>
P-Wave Inc.<br>
<br>
<br>
Bo M. Maryniuck wrote:<br>
<blockquote type="cite"
cite="mid200303192207.25839.b.maryniuk@forbis.lt">
<pre wrap="">On Wednesday 19 March 2003 18:47, Bob Corriher wrote:
</pre>
<blockquote type="cite">
<pre wrap="">If you're on Linux or Unix, this probably isn't the answer.
</pre>
</blockquote>
<pre wrap=""><!---->Have you good solution to use Unicode with it? I would not like to start
coding a parser with ReportLab. But if no solution, I will... :/
</pre>
</blockquote>
<br>
</body>
</html>
--------------060808020109020205030307--