[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] pdf2swf conversion error using php
From: |
Ricardo Pedroso |
Subject: |
Re: [Swftools-common] pdf2swf conversion error using php |
Date: |
Sun, 13 Sep 2009 01:15:13 +0100 |
On Sat, Sep 12, 2009 at 11:18 AM, franck ruzzin <address@hidden> wrote:
> I have on a Linux server the file 'convert.php', containing :
>
> <?php
> $output=array();
> $command = "../pdf2swf -t -o Notre_participation.pdf.swf
> Notre_participation.pdf";
> $return_var=0;
> $s=exec($command,$output,$return_var);
>
> array_push ($output, "EXEC RETURN VALUE : " . $return_var);
> print_r($output);
> ?>
>
>
> If I type via SSH the following code
>
> (uiserver):u44819199:~/swftest/script > <b>php convert.php</b>
> I have the following response
>
>
> Array
> (
> [0] => NOTICE processing PDF page 1 (595x842:0:0) (move:0:0)
> [1] => NOTICE File contains jpeg pictures
> [2] => NOTICE processing PDF page 2 (595x842:0:0) (move:0:0)
> [3] => NOTICE processing PDF page 3 (595x842:0:0) (move:0:0)
> [4] => NOTICE processing PDF page 4 (595x842:0:0) (move:0:0)
> [5] => NOTICE Writing SWF file Notre_participation.pdf.swf
> [6] => EXEC RETURN VALUE : 0
> )
>
>
> and the file 'Notre_participation.pdf.swf' is generated.
>
> But if open the same file via a navigator (ie http://mysite/convert.php),
> I have the following response
>
>
> [0] => NOTICE processing PDF page 1 (595x842:0:0) (move:0:0)
> [1] => NOTICE File contains jpeg pictures
> [2] => EXEC RETURN VALUE : 6
>
>
> the process stops and the file "Notre_participation.pdf.swf" is not created.
>
Could this be a timeout issue???
How long the file takes to be converted when you execute from shell?
If this is the problem you have two timeouts to take care of.
One from php (30 seconds by default), and the other from the webserver.
> I have an other file with a return value of 1
Is this one correctly converted when executed from shell?
Regards,
Ricardo
- [Swftools-common] pdf2swf conversion error using php, franck ruzzin, 2009/09/12
- Re: [Swftools-common] pdf2swf conversion error using php,
Ricardo Pedroso <=
- Re: [Swftools-common] pdf2swf conversion error using php, Ricardo Pedroso, 2009/09/16
- Re: [Swftools-common] pdf2swf conversion error using php, Ricardo Pedroso, 2009/09/17
- [Swftools-common] cannot install 0.9 version on red hat 7.2, Gabriel troisgros, 2009/09/17
- Re: [Swftools-common] cannot install 0.9 version on red hat 7.2, Ricardo Pedroso, 2009/09/17
- RE: [Swftools-common] cannot install 0.9 version on red hat 7.2, Gabriel troisgros, 2009/09/18
- Re: [Swftools-common] cannot install 0.9 version on red hat 7.2, Ricardo Pedroso, 2009/09/18
- Message not available
- Re: [Swftools-common] cannot install 0.9 version on red hat 7.2, Ricardo Pedroso, 2009/09/18
- RE: [Swftools-common] cannot install 0.9 version on red hat 7.2, Gabriel troisgros, 2009/09/18
Re: [Swftools-common] pdf2swf conversion error using php, franck ruzzin, 2009/09/18