2

How to export a PDF document into a series of individual images(jpeg, png or bmp format) using javascript or jquery?

rds
  • 26,253
  • 19
  • 107
  • 134
  • 1
    Everything is possible... Though I think you'd have to code quite some to get this done. There is [pdf.js](https://github.com/mozilla/pdf.js) that would help. By the way, bext time [read the faq](http://stackoverflow.com/faq) about what questions are welcome here... – ppeterka Jan 16 '13 at 08:53
  • it is not possible, in order to do it you need addition libraries, So this should be executed on server. JS does not allow this – Anton Baksheiev Jan 16 '13 at 08:53
  • 1
    JS absolutely allows this; see the aforementioned `pdf.js`. the more interesting question is, _why_ do you want to do this in JS specifically? – Eevee Jan 16 '13 at 09:00
  • The more interesting question is *how to do it* rather than *is that possible*. – rds Jan 16 '13 at 14:19
  • possible duplicate of [Parsing PDF pages as javascript Images](http://stackoverflow.com/questions/12921052/parsing-pdf-pages-as-javascript-images) – Artem Koshelev Mar 29 '13 at 05:35

1 Answers1

0

I stand corrected, ppeterka is right. Look at this question and this answer where you see a pdf being renderd to canvas, so from there-on you indeed have a image.

Community
  • 1
  • 1
GitaarLAB
  • 14,536
  • 11
  • 60
  • 80