Skip to content

Commit

Permalink
ocr sheraz
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherazameer committed Sep 16, 2023
1 parent b99df96 commit bbe5d54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/Message/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Document extends Message
'file_name',
'type',
'description',
'ocr',
'pages',
'size_x',
'size_y',
Expand Down Expand Up @@ -71,6 +72,10 @@ class Document extends Message

/** @var string */
public $description = NULL;

/** @var string */
public $ocr = NULL;
/**
/**
* @property-read integer $pages
Expand Down Expand Up @@ -217,6 +222,7 @@ protected function load()
$this->file_name = $data['file_name'];
$this->type = $data['type'];
$this->description = $data['description'];
$this->ocr = $data['ocr'];
$this->pages = $data['pages'];
$this->size_x = $data['size_x'];
$this->size_y = $data['size_y'];
Expand Down Expand Up @@ -305,6 +311,7 @@ public function save()
'file_name' => $this->file_name,
'type' => $this->type,
'description' => $this->description,
'ocr' => $this->ocr,
'size_x' => $this->size_x,
'size_y' => $this->size_y,
'quality' => $this->quality,
Expand Down

0 comments on commit bbe5d54

Please sign in to comment.