>
> I want to make pdf files using htmldoc who convert html files on the
server
> to pdf and send them to the browser but i can't use static html files.
>....
> My document are processed via embpcgi.cgi.
>

The Execute function allows you to get the result in a scalar.

Take the embpcgi.pl and replace the call to runcgi with the following code:

    my %req ;
    my $output ;
    ScanEnvironment (\%req) ;

    $req{'inputfile'} = $ENV{PATH_TRANSLATED} ;
    $req{'options'} |= optSendHttpHeader ;
    $req{'output'} = \$output ;

    $rc = HTML::Embperl::Execute (\%req) ;

After the excute call $output contains the result and you can pipe it thru
htmldoc

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to