Skip to content

Conversation

TLiu2014
Copy link

@TLiu2014 TLiu2014 commented Jun 8, 2017

Problem
PDF files generated by the previous version 1.3.4 cannot display some content if opened by Adobe Acrobat, leaving blank instead. The original issue Adobe Acrobat doesn't display all content in the PDF file generated by jsPDF #1316 is described with code.

Solution
Replaced line 1150 of jspdf.debug.js, type: "application/pdf", with type: "data:application/pdf;base64".

@Uzlopak Uzlopak mentioned this pull request Sep 2, 2017
@Uzlopak
Copy link
Collaborator

Uzlopak commented Sep 2, 2017

Your fix is in the wrong file. I corrected it in the right file.

see #1399

MrRio pushed a commit that referenced this pull request Sep 2, 2017
@Uzlopak
Copy link
Collaborator

Uzlopak commented Sep 2, 2017

@MrRio This could be closed because #1399 is merged ;)

@MrRio
Copy link
Member

MrRio commented Sep 2, 2017

@arasabbasi Thanks!

@MrRio MrRio closed this Sep 2, 2017
@TLiu2014
Copy link
Author

TLiu2014 commented Sep 2, 2017

@arasabbasi @MrRio So, which file should I use for development, jspdf.js or jspdf.debug.js?

@Uzlopak
Copy link
Collaborator

Uzlopak commented Sep 2, 2017

Depending where the code is. In this case it was basic jspdf functionality which was originally in jspdf.js. So you should have changed it there. If you change something in a library or in a plugin you have to change it there.

@TLiu2014
Copy link
Author

TLiu2014 commented Sep 2, 2017

@arasabbasi Got it, thanks!

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

Successfully merging this pull request may close these issues.

3 participants