PDF Save

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

PDF Save

Postby ksirangi0316 » Thu Jan 29, 2015 2:58 pm

Hi,

I am using CEF 3.2171.1979. PDF save is not working for me. Looks like its using chrome PDF Viewer. Print is working but Save is not working. Do I need to implement any API for saving?

Thanks in advance
ksirangi0316
Newbie
 
Posts: 1
Joined: Thu Jan 29, 2015 2:51 pm

Re: PDF Save

Postby magreenblatt » Thu Jan 29, 2015 3:14 pm

What OS?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: PDF Save

Postby olzzen » Fri Dec 04, 2015 7:38 am

Hi,

same problem for me. Using cef-3.2272.23 on linux. PDF is displayed but cannot be saved.
Any hints?

Regards
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: PDF Save

Postby magreenblatt » Fri Dec 04, 2015 10:32 am

Try a current CEF version (2454 branch or newer). Does it work in cefclient?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: PDF Save

Postby olzzen » Fri Dec 04, 2015 1:52 pm

We cannot move to a newer version.

1. Do you mean the cefclient example?
2. Do we have to implement a specific function?
3. We have implemented the CefDialogHandler-Inteface. Should this be called in this case?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am

Re: PDF Save

Postby magreenblatt » Fri Dec 04, 2015 1:57 pm

olzzen wrote:Do you mean the cefclient example?

Yes.

olzzen wrote:We have implemented the CefDialogHandler-Inteface. Should this be called in this case?

Yes, if it works in cefclient. Otherwise it may be broken in the CEF version you're currently using.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: PDF Save

Postby olzzen » Mon Dec 14, 2015 5:38 am

In the cefclient the OnFileDialog-Callback is called. In our implementation this is not the case.

Our implementation - in short - looks like this:

Code: Select all
class Handler : public CefClient, public CefDialogHandler {
  CefRefPtr<CefDialogHandler> GetDialogHandler() { return this; }
  bool OnFileDialog(CefRefPtr<CefBrowser> browser,
                                 FileDialogMode mode,
                                 const CefString &title,
                                 const CefString &default_file_path,
                                 const std::vector<CefString> &accept_filters,
                                 int selected_accept_filter,
                                 CefRefPtr<CefFileDialogCallback> callback) { std::cout <<  __PRETTY_FUNCTION__ << std::endl; return true; }
}


In this thread http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=13069 there is the speech of an initialization. Do we have to initialize something specific to the CefDialogHandler?
olzzen
Techie
 
Posts: 46
Joined: Fri Oct 23, 2015 1:01 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 18 guests