Print to PDF

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

Print to PDF

Postby jbrasca » Tue May 23, 2017 3:55 pm

Hi,

I'm trying to embed Chromium on a web app to simple render a page on background and print it to pdf.
I was able to embed JCEF into my app, but I found that the method printToPDF has been disable for windows as mentioned on this post:

viewtopic.php?f=17&t=14161&p=30774#p30774

Is there any workaround? or any estimated time for this issue to be fixed?

Thanks in advance,
Juan Brasca
jbrasca
Newbie
 
Posts: 1
Joined: Tue May 23, 2017 3:44 pm

Re: Print to PDF

Postby Czarek » Thu May 25, 2017 12:50 pm

This post says to remove the '--disable-extensions' flag to re-enable pdf support: http://magpcss.org/ceforum/viewtopic.php?p=30756#p30756
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Print to PDF

Postby daikin900 » Tue Jun 13, 2017 8:02 am

PDF support is currently disabled in JCEF on Windows due to shutdown problems.
To fix this problem, delete the `--disable-extensions` flag from ClientApp::OnBeforeCommandLineProcessing to re-enable it
sky blue
daikin900
Newbie
 
Posts: 2
Joined: Tue Jun 13, 2017 7:37 am
Location: Dalas USA


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 13 guests