Skip to content

fix: pdf preview download button not working#24946

Merged
codebytere merged 1 commit intomasterfrom
fix-pdf-preview-download
Aug 17, 2020
Merged

fix: pdf preview download button not working#24946
codebytere merged 1 commit intomasterfrom
fix-pdf-preview-download

Conversation

@codebytere
Copy link
Copy Markdown
Member

Description of Change

Closes #22178.

Before: Nothing.

After:

Screen Shot 2020-08-11 at 10 44 18 PM

Unfortunately this can't be hooked up to will-download infrastructure in its current form - it runs through fairly separate logic and adding the ability to intercept and prevent default a la the existing event implementation would require some patching that at this juncture i don't think is in our best interest.

cc @nornagon

Checklist

Release Notes

Notes: Fixed an issue where the Save button did not function in PDF previews.

@codebytere codebytere requested a review from nornagon August 12, 2020 05:47
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Aug 12, 2020
@codebytere codebytere changed the title fix: pdf download not working fix: pdf preview download button not working Aug 12, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 13, 2020
@codebytere codebytere merged commit befbbc2 into master Aug 17, 2020
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Aug 17, 2020

Release Notes Persisted

Fixed an issue where the Save button did not function in PDF previews.

@codebytere codebytere deleted the fix-pdf-preview-download branch August 17, 2020 15:25
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 17, 2020

I have automatically backported this PR to "10-x-y", please check out #24995

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 17, 2020

I have automatically backported this PR to "9-x-y", please check out #24996

@zapjelly
Copy link
Copy Markdown

Curious if anyone else is experiencing this, loading local packaged pdf, save works perfectly when served but when packaged it shows the save prompt but there is no pdf file created.

@msgc
Copy link
Copy Markdown

msgc commented Sep 28, 2021

Hi, is there any solution to this saving pdf issue?
I tested this in PC and Mac and is not working in neither (however works with npm install electron@12.0.7 in PC and npm install electron@12.0.5 in mac

Thank you in advance

node -v
v14.16.1

npm -v
7.15.1

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

Successfully merging this pull request may close these issues.

PDF download button doesn't do anything

4 participants