mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
import PDFAbstractReference from './PDFAbstractReference.js';
|
|
|
|
class PDFKitReferenceMock extends PDFAbstractReference {
|
|
constructor(index, additionalData = undefined) {
|
|
super();
|
|
this.index = index;
|
|
if (typeof additionalData !== 'undefined') {
|
|
Object.assign(this, additionalData);
|
|
}
|
|
}
|
|
|
|
toString() {
|
|
return `${this.index} 0 R`;
|
|
}
|
|
}
|
|
|
|
export default PDFKitReferenceMock; |