\r
define('PLAYER_SOURCES', AS3_SOURCES . '/com/fluidbook/player');\r
define('COMPOSER_SOURCES', AS3_SOURCES . '/com/fluidbook/ws');\r
-\r
// Workshop\r
define('THEMES', WEBROOT . '/fluidbook/themes/');\r
define('ICONS', WEBROOT . '/fluidbook/icones/');\r
define('WS_CACHE', WS_FILES . '/cache');\r
define('WS_COMPILE_ASSETS', WS_FILES . '/compile');\r
define('WS_SOUNDS', WS_FILES . '/sounds');\r
+define('WS_TOOLS', WS_FILES . '/tools');\r
\r
define('WORKER_PREFIX', 'worker.');\r
\r
mkdir($out, 0777, true);\r
}\r
\r
- $pdfextract = new cubeCommandLine('pdfextract');\r
+ /*$pdfextract = new cubeCommandLine('pdfextract');\r
$pdfextract->cd($out);\r
$pdfextract->setPath(CONVERTER_PATH);\r
- $pdfextract->setArg(null,$this->cropped);\r
+ $pdfextract->setArg(null, $this->cropped);\r
$pdfextract->execute();\r
- $this->addToLog($pdfextract);\r
+ $this->addToLog($pdfextract);*/\r
+\r
+ $gs = new cubeCommandLine('gs');\r
+ $gs->cd($out);\r
+ $gs->setArg('-dBATCH');\r
+ $gs->setArg('-dNOPAUSE');\r
+ $gs->setArg('-dNOPROMPT');\r
+ $gs->setArg('-dNODISPLAY');\r
+ $gs->setArg(null, WS_TOOLS.'/extractFonts.ps');\r
+ $gs->setManualArg('-c "(' . $this->cropped . ') extractFonts quit"');\r
+\r
+ $gs->execute();\r
+ $this->addToLog($gs);\r
}\r
\r
public function getInfos($in = null, $force = false)\r