node-signpdf
Version:
Simple signing of PDFs in node.
18 lines (14 loc) • 437 B
JavaScript
import PDFAbstractReference from './pdfkit/abstract_reference';
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;