Jspdf: pdf produced by 1.3.2 can't be opened by Adobe Reader

Created on 14 Dec 2016  Â·  8Comments  Â·  Source: MrRio/jsPDF

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

Most helpful comment

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

if (!x)
    x = 0;
if (!y)
    y = 0;

All 8 comments

What's in the PDF?

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
.

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

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

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

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

if (!x)
    x = 0;
if (!y)
    y = 0;

@MrRio

Should be fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tarekis picture tarekis  Â·  4Comments

sajesh1985 picture sajesh1985  Â·  5Comments

BarathArivazhagan picture BarathArivazhagan  Â·  4Comments

glaier picture glaier  Â·  3Comments

centurianii picture centurianii  Â·  4Comments