fix(core): update
This commit is contained in:
@ -22,8 +22,8 @@ export class SmartOcr {
|
||||
await originalSmartfile.write();
|
||||
await this.smartshellInstance.exec(`ocrmypdf --rotate-pages ${originalPath} ${processedPath}`);
|
||||
const processedSmartfile = await plugins.smartfile.Smartfile.fromFilePath(processedPath);
|
||||
await plugins.smartfile.fs.remove(originalPath);
|
||||
await plugins.smartfile.fs.remove(processedPath);
|
||||
await originalSmartfile.delete();
|
||||
await processedSmartfile.delete();
|
||||
return processedSmartfile.contentBuffer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user