Page 1 of 1
download pdf file - locked button
Posted: Fri Jul 20, 2018 8:39 pm
by Laertes
Hello! When entering a website, I click on a button to view the print, with this opens new window the button of download pdf when clicking nothing happens. How could I solve it?

Re: download pdf file - locked button
Posted: Fri Jul 20, 2018 8:55 pm
by salvadordf
Hi,
There was a bug in the CEF3 binaries that prevented the use of that button with PDF files but it was fixed a few weeks ago.
Download the latest CEF4Delphi version and use the
TChromium.OnBeforeDownload and
TChromium.OnDownloadUpdated events to handle file downloads.
The
MiniBrowser demo has all the code you need to download files in the "Documents" folder automatically.
For more information about those events read this :
http://magpcss.org/ceforum/apidocs3/pro ... ndler.html
Re: download pdf file - locked button
Posted: Fri Jul 20, 2018 9:07 pm
by Laertes
This would be the most current link of CEF4?
https://github.com/salvadordf/CEF4Delphi
Thank you
Re: download pdf file - locked button
Posted: Sat Jul 21, 2018 7:01 am
by salvadordf
Yes. That's the official CEF4Delphi repository with the latest version but that repository is updated regularly.
That bug was fixed in July 6th so you need a CEF4Delphi version downloaded from that repository in the last 2 weeks.
Re: download pdf file - locked button
Posted: Mon Jul 23, 2018 9:18 pm
by Laertes
Tank you!