WebGL not rendered on PDF in Windows Headless

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.

WebGL not rendered on PDF in Windows Headless

Postby djrecipe » Mon Oct 04, 2021 3:15 am

WebGL content is not rendered to PDF when on Windows in Headless mode

- OnPaint generates images that DO contain WebGL content
- Linux systems DO successfully render WebGL content to PDF using the same code & settings

Tried software rasterization, hardware acceleration enabled/disabled, checked chrome://gpu, etc. etc. This is purely an issue with PDF rendering on Windows. Has anyone successfully rendered WebGl content to a PDF document while running CEF on Windows in headless mode? This seems like a very old issue and most people who claim it is fixed are running on Linux, according to my forum research.
djrecipe
Newbie
 
Posts: 7
Joined: Tue Aug 24, 2021 12:00 am

Re: WebGL not rendered on PDF in Windows Headless

Postby amaitland » Mon Oct 04, 2021 5:09 am

What version are you using?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: WebGL not rendered on PDF in Windows Headless

Postby djrecipe » Thu Oct 21, 2021 6:48 am

Ah, I should have specified that. smh

I am using 94.4.4 on all platforms @amaitland
djrecipe
Newbie
 
Posts: 7
Joined: Tue Aug 24, 2021 12:00 am

Re: WebGL not rendered on PDF in Windows Headless

Postby amaitland » Thu Oct 21, 2021 3:38 pm

Try using the --use-gl=swiftshader command line arg making sure you have the swiftshader folder included in your application.

If that works then upgrading to 94.4.11 should solve the problem.

https://bitbucket.org/chromiumembedded/ ... dll-vulkan
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 37 guests

cron