+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="RunConfigurationProducerService">
- <option name="ignoredProducers">
- <set>
- <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
- </set>
- </option>
- </component>
-</project>
\ No newline at end of file
return;
}
- $fwstk = new FWSTK();
- $fwstk->setArg('--input ' . $this->getPDFInput());
- $fwstk->setArg('--infos');
- $fwstk->execute();
+ $nfoFile = $this->getConvertPath() . 'infos';
- $infos = $fwstk->getOutput();
+ if (!file_exists($nfoFile) || filesize($nfoFile) === 0 || filemtime($nfoFile) < filemtime($this->getPDFInput())) {
+ $fwstk = new FWSTK();
+ $fwstk->setArg('--input ' . $this->getPDFInput());
+ $fwstk->setArg('--infos');
+ $fwstk->execute();
+
+ $infos = $fwstk->getOutput();
+ } else {
+ $infos = file_get_contents($nfoFile);
+ }
if (preg_match('/Pages:\s*(\d+)/', $infos, $matches)) {