ended3월 16일· 1 sources

When Two npm Packages Fight Over pdfjs-dist: Drop to System Binaries

두 npm 패키지가 pdfjs-dist를 두고 충돌할 때: 시스템 바이너리로의 전환

Why it matters

Adding OCR for scanned PDFs in a Next.js app caused a hidden pdfjs-dist version conflict between pdf-to-img and unpdf, which both bundle incompatible versions of PDF.js internally. After exploring several JavaScript alternatives that all had similar issues, the author resolved it by dropping the JS PDF-rasterization library entirely and shelling out to system-level binaries like poppler-utils and Tesseract.

1
Sources
+0
24h
Growth
189d
Active
pdfjs-distnpmpdf-to-imgunpdfTesseractpoppler-utils

Sources

Related Issues