[ic] Problems generating PDF:s on the fly with HTML::HTMLDoc

Mike Heins mike at perusion.com
Thu Nov 27 06:48:32 EST 2003


Quoting Rene Hertell (interchange-users at hertell.com):
> Hi all,
> 
> I have been trying to create an usertag that would return a PDF on-the-fly (by using HTMLDoc and the HTML::HTMLDoc CPAN module). My problem is that I can't get this script to work within IC. It works perfectly when I run it from a separate Perl-script, but running it as an usertag creates only an empty file (0 bytes) or returns nothing.
>
> The perldoc for HTML::HTMLDoc explains that there are problems when
> using the module in a "mod_perl-environment" because of some troubles
> that the IPC::Open3 module has with returning standard-output. This
> problem can be solved so that it wont use IPC::Open3, but that did not
> help (it creates that empty file).

Interchange won't work with IPC::Open3 in the normal course of events,
as most daemons will not.

>
> What does a "mod_perl-environment" mean? I assume that IC is running
> in this mode, but is it possible to by-pass this?

I would think producing a file and giving a location might be
easiest.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295      <mike at perusion.com>

I am a great believer in luck, and I find that the harder I work
the more luck I have. -- Thomas Jefferson


More information about the interchange-users mailing list