Black background colour when loading PDF preview

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Black background colour when loading PDF preview

Postby timwilsonbf » Fri Nov 10, 2017 12:30 am

We've implemented a chromium browser window in our application to be used a a preview pane for PDF documents. When we first load the browser the background briefly flashes black before we pass it a file and it loads.

Is there a way to change this colour to something else as it's really harsh within the colour scheme of our application (Mostly light grey and white).

Any assistance would be greatly appreciated.

Regards Tim
timwilsonbf
Newbie
 
Posts: 2
Joined: Fri Nov 10, 2017 12:04 am

Re: Black background colour when loading PDF preview

Postby magreenblatt » Fri Nov 10, 2017 10:10 am

What OS and CEF version?

You can try specifying CefSettings.background_color.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Black background colour when loading PDF preview

Postby timwilsonbf » Sun Nov 12, 2017 6:05 pm

Sorry I should have posted more details. We're currently using CEF4 in Delphi on various windows OS and loading PDF's into a TChromiumWindow.

I had found another post in relation to CefSettings.background_color but cannot find this property at all.

Any assistance would be greatly appreciated.
timwilsonbf
Newbie
 
Posts: 2
Joined: Fri Nov 10, 2017 12:04 am

Re: Black background colour when loading PDF preview

Postby magreenblatt » Sun Nov 12, 2017 6:20 pm

This forum is for the core C/C++ library. You should use the appropriate support channel for your Delphi wrapper.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Black background colour when loading PDF preview

Postby salvadordf » Mon Nov 13, 2017 2:57 am

timwilsonbf : Please, use the CEF4Delphi forum here https://www.briskbard.com/forum/
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects.
User avatar
salvadordf
Expert
 
Posts: 129
Joined: Sun Dec 18, 2016 8:39 am
Location: Spain


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 27 guests