mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
added image OCR and parsing text from PDF (and OCR of PDF images)
This commit is contained in:
@@ -351,6 +351,12 @@ class BNote extends AbstractBeccaEntity {
|
||||
&& this.mime === "text/html";
|
||||
}
|
||||
|
||||
/** @returns {boolean} true if this note is an image */
|
||||
isImage() {
|
||||
return this.type === 'image'
|
||||
|| (this.type === 'file' && this.mime?.startsWith('image/'));
|
||||
}
|
||||
|
||||
/** @returns {boolean} true if the note has string content (not binary) */
|
||||
isStringNote() {
|
||||
return utils.isStringNote(this.type, this.mime);
|
||||
|
||||
Reference in New Issue
Block a user