Khaled Mneimneh
Khaled Mneimneh
i'm having an issue while retrieving json data from the storage after parsing it here's my code: ``` var data1 = JSON.parse(localStorage.getItem('CanvaData')); pdf.loadFromJSON(data1) ``` any solution?
> @khaledmndev and can you post your data1 value? sure, i used console.log(data1) if you that i you wanted: here's a link for the value stored in a txt file,...
@str Uncaught (in promise) SyntaxError: Unexpected end of JSON input at JSON.parse () at i.loadFromJSON (fabric.min.js:1:131008) at i. (pdfannotate.js:286:14) at Function.each (jquery.min.js:2:2976) at PDFAnnotate.loadFromJSON (pdfannotate.js:284:4) at Object.ready (script.js:15:13) at HTMLCanvasElement....
@str still no luck i've tried with only drawing with pen! i'll open a new issue.. by the way i tried pasting the json value data into pdf.loadFromJSON("here"), and it...