PDF viewing in JCEF

Having problems with building or using the JCEF Java binding? Ask your questions here.

PDF viewing in JCEF

Postby Fishbeak » Fri Jul 28, 2017 5:08 pm

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
Fishbeak
Newbie
 
Posts: 1
Joined: Fri Jul 28, 2017 5:02 pm

Re: PDF viewing in JCEF

Postby JohnnyTheHun » Fri Aug 17, 2018 3:09 am

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?
JohnnyTheHun
Techie
 
Posts: 42
Joined: Tue Apr 10, 2018 12:24 pm

Re: PDF viewing in JCEF

Postby magreenblatt » Fri Aug 17, 2018 11:05 am

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.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: PDF viewing in JCEF

Postby JohnnyTheHun » Tue Aug 21, 2018 11:22 am

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
JohnnyTheHun
Techie
 
Posts: 42
Joined: Tue Apr 10, 2018 12:24 pm

Re: PDF viewing in JCEF

Postby magreenblatt » Tue Aug 21, 2018 11:33 am

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.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 15 guests