[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] PDF2SWF - 2 SWFs
From: |
Benedikt Quirmbach |
Subject: |
[Swftools-common] PDF2SWF - 2 SWFs |
Date: |
Thu, 16 Oct 2008 11:48:41 +0200 |
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
- [Swftools-common] PDF2SWF - 2 SWFs,
Benedikt Quirmbach <=