[Zope] [possibly OT] html2pdf on zope

Bob Corriher bobc@p-wave.com
Wed, 19 Mar 2003 11:47:37 -0500


I use html2pdf for several projects. I think I had a similar problem 
when using html2pdf on a Windows 2000 server. The solution was that the 
call to popen2 in windows requires a mode parameter to indicate that 
popen2 returns a binary stream. It looks like this in my external method:

stin,stout = os.popen2('htmldoc --footer " : " --webpage -t pdf --quiet 
--jpeg -','b')

Otherwise it is the same as the how-to.

If you're on Linux or Unix, this probably isn't the answer.

Bob Corriher
P-Wave Inc.