$prefix = $this->isWithGraphics() ? 'f' : 't';
$res = $dir . $prefix . 'o' . $this->getPage();
if ($this->isWithGraphics()) {
- $res .= '-' . $this->getResolution();
+ if ($this->getResolution() == 0) {
+ $res = $dir . $prefix . 'p' . $this->getPage();
+ } else {
+ $res .= '-' . $this->getResolution();
+ }
}
$res .= '.svg';
$reffile = $this->makeSVGFile();
touch($lock);
if ($this->getFormat() === 'svg') {
if ($this->isWithGraphics()) {
- $this->makeOptimizedSVGFile($file);
+ if ($this->getResolution() > 0) {
+ $this->makeOptimizedSVGFile($file);
+ } else {
+ $this->makeSVGFile();
+ }
} else {
$this->makeTextSVGFile($file);
}