- Add Node.js implementation using @push.rocks/smartpdf - Add browser implementation with PDF.js and Web Workers - Support configurable quality, dimensions, and page selection - Include comprehensive TypeScript definitions and error handling - Provide extensive test coverage for both environments - Add download functionality and browser compatibility checking
29 lines
709 B
TypeScript
29 lines
709 B
TypeScript
/**
|
|
* @push.rocks/smartpreview - Node.js implementation
|
|
*
|
|
* A library for generating efficient JPEG previews from PDFs
|
|
* with support for extensible format processing.
|
|
*/
|
|
|
|
// Main classes
|
|
export { SmartPreview } from './smartpreview.js';
|
|
export { PdfProcessor } from './pdfprocessor.js';
|
|
|
|
// Runtime exports (classes and functions)
|
|
export {
|
|
PreviewError
|
|
} from './interfaces.js';
|
|
|
|
// Type-only exports (interfaces and types)
|
|
export type {
|
|
IPreviewOptions,
|
|
IPreviewResult,
|
|
TSupportedInputFormat,
|
|
TSupportedOutputFormat,
|
|
IFormatProcessor,
|
|
IPdfProcessor,
|
|
TPreviewError
|
|
} from './interfaces.js';
|
|
|
|
// Default export for convenience
|
|
export { SmartPreview as default } from './smartpreview.js'; |