@cantoo/pdf-lib
Version:
Create and modify PDF files with JavaScript
32 lines • 1.64 kB
TypeScript
import { Position } from '../errors';
import PDFArray from '../objects/PDFArray';
import PDFDict from '../objects/PDFDict';
import PDFHexString from '../objects/PDFHexString';
import PDFName from '../objects/PDFName';
import PDFNumber from '../objects/PDFNumber';
import PDFObject from '../objects/PDFObject';
import PDFRef from '../objects/PDFRef';
import PDFStream from '../objects/PDFStream';
import PDFString from '../objects/PDFString';
import BaseParser from './BaseParser';
import ByteStream from './ByteStream';
import PDFContext from '../PDFContext';
import { CipherTransformFactory } from '../crypto';
declare class PDFObjectParser extends BaseParser {
static forBytes: (bytes: Uint8Array, context: PDFContext, capNumbers?: boolean) => PDFObjectParser;
static forByteStream: (byteStream: ByteStream, context: PDFContext, capNumbers?: boolean) => PDFObjectParser;
protected readonly context: PDFContext;
private readonly cryptoFactory?;
constructor(byteStream: ByteStream, context: PDFContext, capNumbers?: boolean, cryptoFactory?: CipherTransformFactory);
parseObject(ref?: PDFRef): PDFObject;
protected parseNumberOrRef(): PDFNumber | PDFRef;
protected parseHexString(ref?: PDFRef): PDFHexString;
protected parseString(ref?: PDFRef): PDFString;
protected parseName(): PDFName;
protected parseArray(ref?: PDFRef): PDFArray;
protected parseDict(ref?: PDFRef): PDFDict;
protected parseDictOrStream(ref?: PDFRef): PDFDict | PDFStream;
protected findEndOfStreamFallback(startPos: Position): number;
}
export default PDFObjectParser;
//# sourceMappingURL=PDFObjectParser.d.ts.map