Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

byteArray of pdf content generated from jsPDF #584

Closed
ppasi07 opened this issue Sep 11, 2015 · 2 comments
Closed

byteArray of pdf content generated from jsPDF #584

ppasi07 opened this issue Sep 11, 2015 · 2 comments

Comments

@ppasi07
Copy link

ppasi07 commented Sep 11, 2015

Hello

I want to know if I can get byteArray out of the pdf document created from pdf js. We are using iText on the backend. I am trying to make a report from html using pdf js and send the pdf byteArray to backend, which directly saves the doc in our repository.

@webix
Copy link

webix commented May 13, 2016

I want to know the answer like @ppasi07. I need to byte array for generating sha256 hash.

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 15, 2018

Should be working by

var doc = new jsPDF();
doc.output('arraybuffer');

@Uzlopak Uzlopak closed this as completed Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants