Page 1 of 1

PDF viewing in JCEF

PostPosted: Fri Jul 28, 2017 5:08 pm
by Fishbeak
Hello; I have been reading various forum posts on getting PDF rendering in JCEF working and I am still unable to render a pdf using jcef.

I set the logs to verbose and

0728/215302.477:VERBOSE1:navigator_impl.cc(241)] Failed Provisional Load: http://plugindoc.mozdev.org/testpages/test.pdf, error_code: -3, error_description: , showing_repost_interstitial: 0, frame_id: 2

This happens on all pdfs (http or filesystem). I have tried building my own JCEF as well as using the maven repo both with the same outcome. I am using the SimpleFrameExample.

Any help would be appreciated as I can't seem to figure this one out.

Thanks

Re: PDF viewing in JCEF

PostPosted: Fri Aug 17, 2018 3:09 am
by JohnnyTheHun
Did you try: You can remove the --disable-extensions switch in https://bitbucket.org/chromiumembedded/ ... app.cpp-77 and recompile JCEF.

Anyone know why the PDF viewer is disabled? Is it causing major stability issues?

Re: PDF viewing in JCEF

PostPosted: Fri Aug 17, 2018 11:05 am
by magreenblatt
JCEF uses multi-threaded-message-loop on Windows which causes shutdown crashes (in Debug mode) when extensions are enabled. So, the PDF viewer is disabled by default to avoid those crashes.

Re: PDF viewing in JCEF

PostPosted: Tue Aug 21, 2018 11:22 am
by JohnnyTheHun
Thank you, two more questions:

    1. So if I compile JCEF in Release mode, there should be no problem with extensions enabled?
    2. Will extensions be enabled by default in the future? The embedded pdf viewer and custom extensions are important for us.

Thank you,
János

Re: PDF viewing in JCEF

PostPosted: Tue Aug 21, 2018 11:33 am
by magreenblatt
JohnnyTheHun wrote:1. So if I compile JCEF in Release mode, there should be no problem with extensions enabled?

Try it and see?

JohnnyTheHun wrote:2. Will extensions be enabled by default in the future?

Maybe.