if ($e[0] == '/ToUnicode') {
$this->cmap_id = $e[1];
} elseif ($e[0] == '/DescendantFonts') {
- $this->descendant = new wsPDFFont($this->extractor, $e[1]);
+ $this->descendant = new wsPDFFont($this->extractor, $e[2]);
} elseif ($e[0] == '/BaseFont') {
$this->name = ltrim($e[1], '/');
} elseif ($e[0] == '/FontDescriptor') {
$cmap = $this->writeCMAP();
$file = $this->writeFont();
- $this->ttffile = $dir . '/' . $this->name . '-' . $this->id . '.ttf';
+ $this->ttffile = $dir . '/' . $this->name . '-' . $this->id . '.otf';
$fontforge = new cubeCommandLine('convert.pe');
$fontforge->setPath(CONVERTER_PATH);
$fontforge->execute();
$this->addToLog($fontforge);
- unlink($cmap);
- unlink($file);
+ //unlink($cmap);
+ //unlink($file);
}
protected function writeFont() {
}
foreach ($collections as $name => $fonts) {
- $out = $this->outweb . '/' . $fonts[0]->getCanonicalName() . '.ttf';
+ $out = $this->outweb . '/' . $fonts[0]->getCanonicalName() . '.otf';
if (count($fonts) == 1) {
copy($fonts[0]->getTTFFile(), $out);
} else {