[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Re: running PDF2SWF via php on linux issue
From: |
Matthias Kramm |
Subject: |
[Swftools-common] Re: running PDF2SWF via php on linux issue |
Date: |
Wed, 27 Aug 2008 18:26:17 +0200 |
User-agent: |
Mutt/1.5.6i |
On Wed, Aug 27, 2008 at 06:07:21PM +1000, Mark A. Lowe <address@hidden> wrote:
> It's installed fine, and when I run it via ssh (under the 'root' user) it
> works fine.
>
> [...]
> I put this same command in a PHP file but was getting no result - no .swf
> file nor response.
> <?php
>
> $output =
> `/var/www/vhosts/mydomain.com.au/httpdocs/pdf2swf/swftools-2008-08-21-2105/s
> rc/pdf2swf myPDF.pdf -o myPDF.swf`;
>
> echo "Output pdf2swf: <pre>$output</pre>";
>
> ?>
>
> This is now giving me the following output:
>
> NOTICE processing PDF page 1 (450x600:0:0) (move:0:0)
> NOTICE Writing SWF file degani.swf
> FATAL Could not create "degani.swf".
I'd start with passing an explicit output path to pdf2swf:
`...pdf2swf myPDF.pdf -o /add/your/path/here/myPDF.swf`;
If that doesn't work, obviously the "here" directory
is missing a u+w or g+w permission. Which of those depends
on which user/group apache runs with (usually apache:apache),
so try a few combinations of
chown apache /add/your/path/here/
chgrp apache /add/your/path/here/
chmod u+w /add/your/path/here/
chmod g+w /add/your/path/here/
Greetings
Matthias