Skip processing with PDF worker when exporting PDF without annotations
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
This commit is contained in:
parent
ce1061c2fb
commit
9b10164eac
1 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,10 @@ class PDFWorker {
|
||||||
Zotero.warn("Not exporting missing file " + attachment.getFilePath());
|
Zotero.warn("Not exporting missing file " + attachment.getFilePath());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (!annotations.length) {
|
||||||
|
await OS.File.copy(attachmentPath, path);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
let buf = await IOUtils.read(attachmentPath);
|
let buf = await IOUtils.read(attachmentPath);
|
||||||
buf = new Uint8Array(buf).buffer;
|
buf = new Uint8Array(buf).buffer;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue