From d81f562b712f2387fa02290bf2ca86392ab356f2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 20:21:25 +0000 Subject: Aktualisierung auf Version 1.8.1 --- includes/DjVuImage.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'includes/DjVuImage.php') diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index b857fa66..871c563b 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -208,7 +208,23 @@ class DjVuImage { 'resolution' => $resolution, 'gamma' => $gamma / 10.0 ); } + + /** + * Return an XML string describing the DjVu image + * @return string + */ + function retrieveMetaData() { + global $wgDjvuToXML; + if ( isset( $wgDjvuToXML ) ) { + $cmd = $wgDjvuToXML . ' --without-anno --without-text ' . $this->mFilename; + $xml = wfShellExec( $cmd, $retval ); + } else { + $xml = null; + } + return $xml; + } + } -?> \ No newline at end of file +?> -- cgit v1.2.2