@cantoo/pdf-lib
Version:
Create and modify PDF files with JavaScript
29 lines (23 loc) • 754 B
text/typescript
import { MethodNotImplementedError } from '../errors';
import PDFContext from '../PDFContext';
class PDFObject {
registerChange() {
throw new MethodNotImplementedError(
this.constructor.name,
'registerChange',
);
}
clone(_context?: PDFContext): PDFObject {
throw new MethodNotImplementedError(this.constructor.name, 'clone');
}
toString(): string {
throw new MethodNotImplementedError(this.constructor.name, 'toString');
}
sizeInBytes(): number {
throw new MethodNotImplementedError(this.constructor.name, 'sizeInBytes');
}
copyBytesInto(_buffer: Uint8Array, _offset: number): number {
throw new MethodNotImplementedError(this.constructor.name, 'copyBytesInto');
}
}
export default PDFObject;