/var/www/greso.tech/server/nsm/node_modules/pdf-lib/src/core/document
NameSizeModeActions
PDFCrossRefSection.ts48220644editdlrm
PDFHeader.ts13560644editdlrm
PDFTrailer.ts13570644editdlrm
PDFTrailerDict.ts9430644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/pdf-lib/src/core/document/PDFTrailerDict.ts (943B)
import PDFDict from 'src/core/objects/PDFDict'; import CharCodes from 'src/core/syntax/CharCodes'; class PDFTrailerDict { static of = (dict: PDFDict) => new PDFTrailerDict(dict); readonly dict: PDFDict; private constructor(dict: PDFDict) { this.dict = dict; } toString(): string { return `trailer\n${this.dict.toString()}`; } sizeInBytes(): number { return 8 + this.dict.sizeInBytes(); } copyBytesInto(buffer: Uint8Array, offset: number): number { const initialOffset = offset; buffer[offset++] = CharCodes.t; buffer[offset++] = CharCodes.r; buffer[offset++] = CharCodes.a; buffer[offset++] = CharCodes.i; buffer[offset++] = CharCodes.l; buffer[offset++] = CharCodes.e; buffer[offset++] = CharCodes.r; buffer[offset++] = CharCodes.Newline; offset += this.dict.copyBytesInto(buffer, offset); return offset - initialOffset; } } export default PDFTrailerDict;