HI,

I have a PDF with 2 pages.

From this PDF I want to generate 2 SWFs, each with 1 page of the PDF.
The 2 SWFS should be created in the same directory where the PDF is.

To do that I wrote a PHP-Funktion, that looks like this:

// ----------------------------------------------------------------------
function create_swf($filename)
{
        include('config_pdf.php');
        
        $filename_pdf = $thepdfpath . $filename . ".pdf";
        $filename_swf_1 = $thepdfpath . $filename . "_1.swf";
        $filename_swf_2 = $thepdfpath . $filename . "_2.swf";
        
        // SWF erzeugen
$config = $toolspath . "pdf2swf" . ' -S -qq -p 1-1' . $filename_pdf . " -o " . $filename_swf_1;
        $swfc_meldung = system($config);
        
$config = $toolspath . "pdf2swf" . ' -S -qq -p 2-2' . $filename_pdf . " -o " . $filename_swf_2;
        $swfc_meldung = system($config);
}
// ----------------------------------------------------------------------

When running this script I get no error message (without "-qq"-Option) and no SWF.

What is wrong with it?

Benedikt


Reply via email to