UNPKG

ng-pdf-renderer

Version:

A modern, zero-configuration PDF viewer for Angular applications with enhanced error handling, auto-fit, text selection, and responsive design

33 lines (32 loc) 854 B
/** * Interface defining configuration options for the PDF viewer */ export interface PdfOptions { height?: string; width?: string; renderTextLayer?: boolean; renderAnnotationLayer?: boolean; initialZoom?: number; initialPage?: number; autoFit?: boolean; showControls?: boolean; showNavigation?: boolean; showZoomControls?: boolean; showRotationControls?: boolean; showDownloadButton?: boolean; showPrintButton?: boolean; showSearchBar?: boolean; showThumbnails?: boolean; showOutline?: boolean; enableTextSelection?: boolean; workerSrc?: string; } /** * Interface for PDF error events */ export interface PdfError { type: 'load' | 'render' | 'network' | 'permission' | 'corrupt' | 'timeout' | 'unknown'; message: string; pageNumber?: number; timestamp: Date; }