swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Call PDF2SWF by PHP on Linux


From: Pete Siviter
Subject: Re: [Swftools-common] Call PDF2SWF by PHP on Linux
Date: Tue, 30 Sep 2008 08:06:09 +0100

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

[Prev in Thread] Current Thread [Next in Thread]