@tuttarealstep/vue-pdf.js
Version:
A Vue component for displaying PDF files using the standard `pdf.js` viewer. This package provides a simple and powerful integration to embed PDF viewers in Vue applications.
12 lines (11 loc) • 532 B
TypeScript
import { AppOptions } from 'pdf.js/web/app_options.js';
import { PDFViewerApplication } from 'pdf.js/web/app.js';
import { default as PDFJSWorker } from 'pdf.js/src/pdf.worker.js?worker&inline';
declare const AppConstants: {
LinkTarget: any;
RenderingStates: any;
ScrollMode: any;
SpreadMode: any;
};
declare function initViewer(element: HTMLElement): Promise<typeof PDFViewerApplication>;
export { AppConstants as PDFViewerApplicationConstants, AppOptions as PDFViewerApplicationOptions, initViewer, PDFJSWorker };