pdf-to-markdown/oldSrc/javascript/models/TextItem.jsx
2024-03-26 10:52:54 -06:00

21 lines
553 B
JavaScript

import PageItem from './PageItem.jsx'
//A text item, i.e. a line or a word within a page
export default class TextItem extends PageItem {
constructor(options) {
super(options);
this.x = options.x;
this.y = options.y;
this.width = options.width;
this.height = options.height;
this.text = options.text;
this.font = options.font;
this.lineFormat = options.lineFormat;
this.unopenedFormat = options.unopenedFormat;
this.unclosedFormat = options.unclosedFormat;
}
}