Software Archive
Read-only legacy content
17061 Discussions

How to open a PDF file created with JSPDF

Alan_A_1
Beginner
1,013 Views

Hi, I did a web app that creates and open a pdf file, now when I try to convert it to an Android app with Intel XDK, it seems that creates the pdf but when opens a new window nothing is shown.

I included the file, file transfer and in-app browser plugins but nothing

I saw this post: http://stackoverflow.com/questions/30345264/open-a-pdf-in-a-modal-using-intel-xdk

But the answer is not useful

What I want is that when I open (NOT SAVE) the pdf file Android show me the "Open with..." window so I can choose if open it with Adobe Reader or Epson IPrint or another app.

This is the jspdf function to open the pdf file:

            function show(){
                doc.output('dataurlnewwindow');
            }

Thanks.

Ps: I tested with the emulator and device but nothing and my version of Intel XDK is 3522

 

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
1,013 Views

What you need to do is open another app and give it that file. There are some plugins out there that may help, I cannot vouch for how well they do or do not work, but here's one that I found > https://github.com/lampaa/com.lampa.startapp < you should look for others that provide similar functionality before committing to just one.

0 Kudos
Reply