public function _getHightlightFilePath($page, $mode = 'standard')
{
- return $this->path('texts/p' . $page . '.fby');
+ $dir = $mode !== 'standard' ? '/' . $mode : '';
+ return $this->path('texts' . $dir . '/p' . $page . '.fby');
}
public function _getTextPath($page, $type = self::TEXT_PLAIN, $mode = 'standard', $extractionMethod = 'fluidbook', $ignoreSeparators = '')
}
$prefix = self::_getTextFilePrefix($extractionMethod);
- return $this->path('texts/' . $sepFolder . $prefix . $type . $page . '.txt');
+ $dir = $mode !== 'standard' ? '/' . $mode : '';
+ return $this->path('texts/' . $dir . $sepFolder . $prefix . $type . $page . '.txt');
}
public function getPDFSource($type = 'crop'): string