Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFMake not working on devices #677

Closed
girish-fuluskar opened this issue Aug 23, 2016 · 5 comments
Closed

PDFMake not working on devices #677

girish-fuluskar opened this issue Aug 23, 2016 · 5 comments

Comments

@girish-fuluskar
Copy link

Hi,

I am working on assignment where it require to generate PDF on devices (iOS, Android, Windows). I am using PDFMake library for the same, were I am able to generate the PDF on chrome but when I am running the same solution on any device. It doesn't work.

Kindly advice.

Girish

@hutch120
Copy link

Hi Girish,

It's great you are engaging with the community to report an issue.

With respect, you will likely get a better response from the community and collaborators if you at least have a crack at figuring out why the issue is occurring. Consider providing technical details of the devices you are testing with, things you have tried, what exactly isn't working.

Cheers,
Simon

@girish-fuluskar
Copy link
Author

Hi Simon,

Thanks for reply.
I am using PDFMake library in my Ionic application where I am creating pdf and using open() to open the pdf in viewer. All this works fine on browser (Mozilla and chrome) but when I install the app on android device, pdf doesn't open. I tried different approach and was able to open the pdf on android device through creating model and passing the blob url to it but that viewer not providing options for print and mail which generally comes in viewer.
So my question is, is there any way I can open my PDF in acrobat or in similar viewer?

Cheers,
Girish

@hutch120
Copy link

Hi Girish,

IMHO the issue isn't really related to PDFMake, it is more a standards issue with how browsers implement their PDF viewers.

So then the answer becomes obvious, don't rely on browser implementation, instead, to ensure consistency between browsers use a PDF viewer library like pdf.js rather than rely on the built in PDF viewer. https://mozilla.github.io/pdf.js/

Hope this helps. :)

@hutch120
Copy link

Hi Girish,

Did you solve the problem? If so can you comment what you did and close this issue?

Cheers,
Simon

@liborm85
Copy link
Collaborator

continued here: #800

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

No branches or pull requests

3 participants