Comments (2)
Getting the same issue.
Might be related to Automattic/node-canvas#930
from pdf-img-convert.js.
If using sharp in your project make sure to do the following anywhere sharp is imported (in this specific order)
import pdf2img from 'pdf-img-convert'
import { createCanvas } from 'canvas'
import sharp from 'sharp'
from pdf-img-convert.js.
Related Issues (20)
- pdfjs-dist has changed directory structure - a breaking change
- Error HOT 1
- Poor image quality for PDFs with small fonts HOT 1
- The expression of an export assignment must be an identifier or qualified name in an ambient context. HOT 1
- TS compabilty -> .then does not exist | not so useless - useless await HOT 1
- Getting invalid pdf structure when running in Render
- memory leak problem with larger in size or the files with many page HOT 2
- PDF Resolution (PPI) HOT 1
- Dependencies are too large HOT 2
- define PDI resolution of image output
- Converts PDF without Fonts/Text HOT 16
- Fillable PDF Forms HOT 6
- canvas install OSX is failing
- Running on browser (client-side like pdf-lib) HOT 1
- FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. HOT 2
- Does this work in Next js? HOT 13
- `Invalid PDF structure.` with `node-latex` generated contents
- Bump pdf.js version for vulnerability HOT 6
- Converts PDF without Text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf-img-convert.js.