pdf-lib
Version:
Library for creating and modifying PDF files in JavaScript
19 lines (18 loc) • 812 B
TypeScript
import '../pdf-objects';
import { PDFDictionary, PDFNumber, PDFStream } from '../pdf-objects';
import PDFOperator from '../pdf-operators/PDFOperator';
declare class PDFContentStream extends PDFStream {
static of: (dict: PDFDictionary, ...operators: (PDFOperator | PDFOperator[])[]) => PDFContentStream;
static validateOperators: (elements: any[]) => void;
operators: PDFOperator[];
encodedOperators: Uint8Array | void;
constructor(dictionary: PDFDictionary, ...operators: Array<PDFOperator | PDFOperator[]>);
readonly Length: PDFNumber;
clone: () => PDFContentStream;
encode: () => this;
operatorsBytesSize: () => number;
bytesSize: () => number;
copyBytesInto: (buffer: Uint8Array) => Uint8Array;
private copyOperatorBytesInto;
}
export default PDFContentStream;