/** * PdfWriter.ts class for EJ2-PDF */ import { StreamWriter } from '@phamloi/file-utils'; import { PdfDocumentBase } from './../document/pdf-document-base'; import { IPdfWriter } from './../../interfaces/i-pdf-writer'; import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives'; /** * Used to `write a string` into output file. * @private */ export declare class PdfWriter implements IPdfWriter { /** * Specifies the current `position`. * @private */ private currentPosition; /** * Specifies the `length` of the stream. * @private */ private streamLength; /** * Check wheather the stream `can seek` or not. * @private */ private cannotSeek; /** * Specifies the parent `document`. * @private */ private pdfDocument; /** * Specifies the `stream`. * @private */ private streamWriter; /** * Initialize an instance of `PdfWriter` class. * @private */ constructor(stream: StreamWriter); /** * Gets and Sets the `document`. * @private */ get document(): PdfDocumentBase; set document(value: PdfDocumentBase); /** * Gets the `position`. * @private */ get position(): number; /** * Gets the `length` of the stream'. * @private */ get length(): number; /** * Gets the `stream`. * @private */ get stream(): StreamWriter; /** * `Writes the specified data`. * @private */ write(overload: IPdfPrimitive | number | string | number[]): void; }