6

I have a use case where users can upload a multi page PDF file.

I want to show preview of each page separately at the time of uploading. One way to it that I can send the file to server and split and send it back to client side for preview but I don't want to do that.

Is there a way to split the PDF at the client side using JavaScript(no server API calls).

If Yes then how and if no then why it is not possible?

Thanks in advance.

kb4shubham
  • 321
  • 3
  • 8
  • Possible duplicate of [Split PDF in seperate file in Javascript](http://stackoverflow.com/questions/33039152/split-pdf-in-seperate-file-in-javascript) – Adnan Umer Oct 14 '16 at 10:33
  • @AdnanUmer in link you provided, the splitting process is done at server side via node.js, here this guy asks for client side method. – mergenchik Oct 14 '16 at 10:36
  • 1
    By using HTML5 and some sort of javascript library which can handle PDF in browser maybe possible. If you have time, check this library https://mozilla.github.io/pdf.js/ – mergenchik Oct 14 '16 at 10:39
  • Did you find any solution? – Sujatha Girijala Sep 18 '19 at 07:36

0 Answers0