loadPdfJs
Official
Load PDF.js and return a promise to the global pdfjsLib object. Can also use Window.pdfjsLib after this promise resolves to get the same reference.
For more specific return type, use:
const pdfjsLib = await loadPdfJs(); ```
<ImportStatement text="import { loadPdfJs } from 'obsidian';" />
**Signature:**
```tsfunction loadPdfJs(): Promise<unknown>Returns: Promise<unknown> — A promise that resolves to the global Window.pdfjsLib object.