Move pdf.js worker and standard font resolution logic into dedicated utility functions for improved maintainability and clarity. Replace inline workerSrc setup with a reusable configurePdfjsNodeRuntime helper. Update Next.js config to use a shared asset trace list for pdf.js runtime files, reducing duplication and simplifying future updates. |
||
|---|---|---|
| .. | ||
| assets | ||
| merge.ts | ||
| model.ts | ||
| normalize-text.ts | ||
| parse.ts | ||
| parser-version-key.ts | ||
| parser-version.ts | ||
| pdfjs-runtime.ts | ||
| render.ts | ||
| runLayoutModel.ts | ||
| stitch.ts | ||
| types.ts | ||