parallax / jsPDF

Client-side JavaScript PDF generation for everyone.
https://parall.ax/products/jspdf
MIT License
29.21k stars 4.67k forks source link

pdf produced by 1.3.2 can't be opened by Adobe Reader #973

Closed massimo-cassandro closed 6 years ago

massimo-cassandro commented 7 years ago

it returns a "parse error" and the pdf appear completely blank

MrRio commented 7 years ago

What's in the PDF?

massimo-cassandro commented 7 years ago

Hi I've attached two example of similar pdf files build with old and new jspdf version using the same script

Hope this can help

bye

.................................................................. Massimo Cassandro

2016-12-14 15:26 GMT+01:00 James Hall notifications@github.com:

What's in the PDF?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MrRio/jsPDF/issues/973#issuecomment-267046776, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_6gX5ZNqw_H9Ckv32m4UruSCE_YSLyks5rH_ytgaJpZM4LMyTr .

shalini-github commented 7 years ago

Hi i am using jspdf html2pdf method. The pdf renders properly in chrome preview but not in adobe reader. Im getting this big error when opening in adobe acrobat reader and pdf is blank

An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem.

anyone facing this issue?please help

sureeebabu commented 7 years ago

Im too Facing Same kind of error . Anyone give solution for this

jutunen commented 7 years ago

@massimo-cassandro @MrRio @linigithub @sureeebabu Here you can find some tips on how to debug PDFs: https://github.com/MrRio/jsPDF/issues/570

xfolder commented 7 years ago

In jspdf.debug.js at API.text = function (text, x, y, flags, angle, align) add

if (!x)
    x = 0;
if (!y)
    y = 0;
xfolder commented 7 years ago

@MrRio

Uzlopak commented 6 years ago

Should be fixed