--On 15. Juli 2007 13:11:41 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote:

I am using the following external method to write pdf files.

import  subprocess
def html2pdf(self,source):
p=subprocess.Popen(['htmldoc', '--webpage',
'/opt/scholarpack/ancillary/mypdf.pdf'])     p.wait()

When I do this the html is truncated and an incomplete pdf is generated.
However, if I rum htmldoc in a terminal on the same html file then the
ouput  is perfect. Can anyone see where the external method may be going
wrong,  apart from the formatting that kmail is enforcing on this code

This has nothing to do with calling the code from an external method.
Check if you get a proper result using os.system() or using the commands module.


Attachment: pgp7OQ0PKMYjY.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to