Public Member Functions

ilFOPUtil Class Reference

Public Member Functions

 getFOPCmd ()
 get fop command
 makePDF ($a_from, $a_to)
 convert fo file to pdf file

Detailed Description

Definition at line 32 of file class.ilFOPUtil.php.

Member Function Documentation

ilFOPUtil::getFOPCmd (  ) 

get fop command

Definition at line 38 of file class.ilFOPUtil.php.

Referenced by makePDF().

                return PATH_TO_FOP;

Here is the caller graph for this function:

ilFOPUtil::makePDF ( a_from,

convert fo file to pdf file

string $a_from source fo file
string $a_to target pdf file

Definition at line 49 of file class.ilFOPUtil.php.

References getFOPCmd().

Referenced by ilContObjectExport::buildExportFilePDF().

                $saved = getenv("JAVACMD");        // save old value

                $fop_cmd = ilFOPUtil::getFOPCmd()." -fo ".
                        $a_from." -pdf ".$a_to;
//echo $fop_cmd."<br>:";


                /* Add redirection so we can get stderr. */
                $handle = popen($fop_cmd.' 2>&1', 'r');
echo "'$handle'; " . gettype($handle) . "\n";
                $read = fread($handle, 2096);
echo $read;

                $ret = exec($fop_cmd, $arr, $r2);
echo $ret.$r2;
echo ":";

Here is the call graph for this function:

Here is the caller graph for this function:

The documentation for this class was generated from the following file: