mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-02-08 05:49:29 +01:00
21 lines
553 B
JavaScript
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;
|
|
}
|
|
|
|
}
|