mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-21 15:12:34 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user