C
C
chezzyderp2021-09-29 20:01:33
JavaScript
chezzyderp, 2021-09-29 20:01:33

How to pull the cover of a pdf file using JavaScript?

You need to get the cover of the pdf file on the server and send the jpg/png cover file to the client.
React client, Node server

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-29
@Rsa97

The PDF does not have a cover as such. You can only get the first page and use it as the cover.
https://www.npmjs.com/package/pdf-thumbnail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question