mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-02-15 01:09:48 +01:00
14 lines
392 B
React
14 lines
392 B
React
|
// A abstract PageItem class, can be TextItem, or TextItemBlock
|
||
|
export default class PageItem {
|
||
|
|
||
|
constructor(options) {
|
||
|
if (this.constructor === PageItem) {
|
||
|
throw new TypeError("Can not construct abstract class.");
|
||
|
}
|
||
|
this.type = options.type;
|
||
|
this.annotation = options.annotation;
|
||
|
this.parsedElements = options.parsedElements;
|
||
|
}
|
||
|
|
||
|
}
|