From a52b61d513a50244c989376fd33f7986eae103f7 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 3 Mar 2011 14:00:05 +0000 Subject: [PATCH] --- inc/ws/Metier/class.ws.document.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/inc/ws/Metier/class.ws.document.php b/inc/ws/Metier/class.ws.document.php index 5e4277e35..ddbdadce3 100644 --- a/inc/ws/Metier/class.ws.document.php +++ b/inc/ws/Metier/class.ws.document.php @@ -90,6 +90,21 @@ class wsDocument extends cubeMetier { $this->uncropDocument(); } + public function extractFonts() + { + $out = $this->out . 'fonts'; + if (!file_exists($out)) { + mkdir($out, 0777, true); + } + + $pdfextract = new cubeCommandeLine('pdfextract'); + $pdfextract->setCd($out); + $pdfextract->setPath(CONVERTER_PATH); + $pdfextract->setArg('', $this->in); + $pdfextract->execute(); + $this->addToLog($pdfextract); + } + public function getInfos($in = null, $force = false) { if (is_null($in)) { -- 2.39.5