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

Enable PDF Viewer #12337

Closed
alexeykuzmin opened this issue Mar 17, 2018 · 134 comments · Fixed by #21794
Closed

Enable PDF Viewer #12337

alexeykuzmin opened this issue Mar 17, 2018 · 134 comments · Fixed by #21794

Comments

@alexeykuzmin
Copy link
Contributor

alexeykuzmin commented Mar 17, 2018

It was disabled during the Chromium 63 upgrade in #11459.
Please turn enable_pdf_viewer flag in the features.gypi on, fix compilation and tests.

@ckerr
Copy link
Member

ckerr commented Aug 14, 2018

@sethlu @gnahzak have either of you had time to work on this?

This is still a 3.0.0 blocker

@sethlu
Copy link
Contributor

sethlu commented Aug 15, 2018

@ckerr We didn't get to make much progress since #13760 opened.

@codebytere codebytere assigned jkleinsc and unassigned sethlu and gnahzak Aug 24, 2018
@jkleinsc jkleinsc removed their assignment Aug 30, 2018
@jkleinsc jkleinsc moved this from Active: Assigned to Triage: Blocks Stable in 3.0.x / 3.1.x Aug 30, 2018
@ckerr ckerr moved this from Blocks Stable to Active Blockers in 3.0.x / 3.1.x Sep 6, 2018
@codebytere codebytere removed this from Active Blockers in 3.0.x / 3.1.x Sep 6, 2018
@nornagon nornagon mentioned this issue Jan 16, 2020
6 tasks
@nornagon
Copy link
Member

nornagon commented Feb 4, 2020

relevant: https://bugs.chromium.org/p/chromium/issues/detail?id=702993

@nornagon
Copy link
Member

This should be ready to test out in the next 10.x nightly. I'm hoping to backport to 9.x as well, though it may not end up sticking if it causes issues.

@davwheat
Copy link

davwheat commented Feb 13, 2020 via email

@godza
Copy link

godza commented Feb 18, 2020

I can confirm that in latest nightly build (10.0.0-nightly.20200216) PDF viewer works again. Thanks for hard work to everyone involved.

@geesen
Copy link

geesen commented Feb 18, 2020

Thank you for this long-awaited feature!
Does this somehow include the ability to print?

@godza
Copy link

godza commented Feb 18, 2020

Thank you for this long-awaited feature!
Does this somehow include the ability to print?

In my app, PDF print still does not work. I'm getting these errors "ipc_message_attachment_set.cc MessageAttachmentSet destroyed with unconsumed attachments"

@teckwrek
Copy link

Hi @nornagon .... I confirmed that PDF viewer works and my part of the bounty is yours!

Could I request that the download and print functionality be fixed as well?

@HitomiTenshi
Copy link

HitomiTenshi commented Feb 18, 2020

@godza @teckwrek It's a known issue at the moment. @nornagon wanted to release a working PDF viewer first and tie up the rest afterwards. Thanks again @nornagon !

See follow-up issues:
#22179
#22178
#22180

@Order256
Copy link

@nornagon thanks for fixing the PDF. I saw that it's supposed to be in Electron 9.0.0-beta.2 unfortunately i only get a grey background and 3 icons when i try to load a PDF file.

@nornagon
Copy link
Member

@Order256 Ah, yeah, I'm seeing the same thing. Opened #22286 to track the issue.

@pbmzero
Copy link

pbmzero commented Feb 20, 2020

I'm not sure what to do with the bounty on my end, when i tried it with electron-nightly@10.0.0-nightly.20200218 and I assume I hit bug #22286

@nornagon
Copy link
Member

@pbmzero do you have a link to the pdf you're having trouble with? https://gist.github.com/248085f4c2376e9211479f2d09634050 this works for me in 10.0.0-nightly.20200218.

@pbmzero
Copy link

pbmzero commented Feb 21, 2020

@nornagon Ok it worked if i loaded the PDF directly like you showed in your code snippet.

I expected that it would work inside iframe per this example: https://www.w3docs.com/tools/code-editor/1087

@nornagon
Copy link
Member

This example works for me in an iframe: https://gist.github.com/c097b618d2c1cfccf99c6a80fb15c550

@pbmzero
Copy link

pbmzero commented Feb 21, 2020

@nornagon Indeed it works. I'll go ahead and release bounty. Hoping this sticks!

@djbusby
Copy link

djbusby commented Feb 23, 2020

For me electron-nightly@10.0.0-nightly.20200221 is working perfectly for six PDF view cases I've got -- this is excellent work, many thanks! Just hoping to get print feature.

@godza
Copy link

godza commented Feb 26, 2020

I've tried latest 9.0.0 build (beta 3) and pdf preview is working for me now. Thanks again!

@waltder
Copy link

waltder commented Apr 13, 2020

Any idea when version 9.0.0 beta 3 or greater (even version 10) will become an official release?

@jkleinsc
Copy link
Contributor

@waltder Electron 9 stable date has been moved to Chromium's M83 stable date, May 19th. There is a PR in process here electron/electronjs.org-old#3770 to update the website.

@waltder
Copy link

waltder commented Apr 13, 2020

@jkleinsc Thanks for the info.

@waltder
Copy link

waltder commented Apr 16, 2020

Will the print and download features be fixed any time soon?

@heimlich
Copy link

Great news that the pdf viewer is working again. Thank you very much!
There already exist two open tickets for printing #22179 and downloading #22178

@nornagon Are you going to work on these tickets too? Or can you give an estimate of the effort?

@ajgadev
Copy link

ajgadev commented Jun 24, 2020

Hello! i'm using Electron 9.0.5 stable but when i try opening a pdf it's a grey screen. Am i missing something?

@tidg
Copy link

tidg commented Aug 28, 2020

Hi,
On my side this bad behaviour was due to this simple piece of code app.commandLine.appendSwitch('disable-site-isolation-trials');
I don't understand the relationship between the PDF feature and this part of the code but when I remove it, it works as expected.

@cproduct cproduct mentioned this issue Sep 7, 2020
3 tasks
@ncortines
Copy link

This seems to be broken on 18.0.3. Seems to work fine on 17.4.0 though

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