UNPKG

react-pdf

Version:

Display PDFs in your React app as easily as if they were images.

8 lines (5 loc) 174 B
import * as pdfjsModule from 'pdfjs-dist'; const pdfjs = ( 'default' in pdfjsModule ? pdfjsModule['default'] : pdfjsModule ) as typeof pdfjsModule; export default pdfjs;