Hi there,

I use something like the following...


    $output = array();
    $return = 0;
    $pdfFile = "pdffile.pdf";
    $swfFile = "outfile.swf";

    $PDF2SWFOptions = " -s jpegquality=50  -s splinequality=50 -s
fontquality=50";
   

    // Ensure pdf2swf is in your ($)path, or define the full path here.
    if(PHP_OS == "WIN32" || PHP_OS == "WINNT")
        $pdf2Swf = 'pdf2swf.exe ';
    else // if (PHP_OS == "Linux")
        $pdf2Swf = 'pdf2swf ';

    $command = $pdf2Swf . $PDF2SWFOptions . ' "' . $pdfFile . '" -o "' .
$swfFile . '"';
    exec($command, $output, $return);

HTH.

Regards,
Pete



On Mon, 2008-09-29 at 21:20 +0200, Benedikt Quirmbach wrote:

> Hi,
> 
> on my Windows test server I have a working PHP script that calls  
> PDF2SWF.
> 
> It looks like this:
> 
> ---------------------------------------
> 
> $config = $toolspath . "pdf2swf.exe" . ' -S -qq ' . $filename_pdf . "  
> " . $filename_swf;
> $swfc_meldung = system($config);
> 
> ---------------------------------------
> 
> $toolspath is in this case "c:\swftools\\".
> 
> On Linux $toolspath will be something like "/usr/local/bin/".
> 
> How must I call PDF2SWF on a Linux system?
> 
> Benedkt
> 
> 
> 
> 
> This message has been scanned by MailController - 
> www.MailController.altohiway.com on behalf of Concept Publishing Ltd

Reply via email to