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

Add a button to natively download as PDF #34

Open
niccolospa opened this issue Apr 1, 2019 · 2 comments
Open

Add a button to natively download as PDF #34

niccolospa opened this issue Apr 1, 2019 · 2 comments

Comments

@niccolospa
Copy link

It would be very useful when using the web-site through iPad or iPhone

@jaredpetersen
Copy link
Owner

This capability should already exist in most browsers. Chrome, for instance, allows you to change your printer to "Save as PDF" instead of a real printer. It looks like this capability already exists on the iOS Safari browser as well.

It looks like it may be possible to provide this functionality natively via JavaScript libraries without sending the user to the print dialog, i.e. just click a save icon and the PDF immediately starts downloading. However, that may be more work than it's worth since we already have the "Save as PDF" print dialog solution. This is definitely something that someone can look into though and I would consider merging if the solution wasn't hack-y.

@jaredpetersen jaredpetersen changed the title Request: Add a button to download as PDF Add a button to natively download as PDF Apr 1, 2019
@niccolospa
Copy link
Author

Thank you! I didn’t know that is was possible to do by simply using the iOS print prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants