if ($this->getResolution() === 'thumb') {
PDFTools::makeMiniShot($this->getSplittedPDFPage(), $file, 1, $this->getFormat());
} else {
- $rr = $this->getVersion() === 'html' ? $this->getJob()->getResolutionRatio() : $this->getJob()->getMobileFirstRatio();
+ $rr = $this->getVersion() === 'html' ? $this->getResolutionRatio() : $this->getMobileRatio();
PDFTools::makeShotPNM($this->getSplittedPDFPage(), $file, 1, '', $this->getResolution() * $rr, 85, 4, $this->isWithTexts(), null, null, $this->getFormat());
}
} else if ($this->getFormat() === 'swf') {
SVGTools::optimizeSVG($inter, $out);
}
+ public function getResolutionRatio(): float
+ {
+ return $this->getJob()->getResolutionRatio();
+ }
+
+ public function getMobileRatio(): float
+ {
+ return $this->getJob()->getMobileFirstRatio();
+ }
+
public function makeOptimizedSVGFile($out)
{
$in = $this->makeSVGFile();