Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

download pdf file - locked button

Post Reply
Laertes
Posts: 29
Joined: Fri Apr 27, 2018 1:27 pm

download pdf file - locked button

Post 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?
Image
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: download pdf file - locked button

Post 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
Laertes
Posts: 29
Joined: Fri Apr 27, 2018 1:27 pm

Re: download pdf file - locked button

Post by Laertes »

This would be the most current link of CEF4?

https://github.com/salvadordf/CEF4Delphi

Thank you
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: download pdf file - locked button

Post 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.
Laertes
Posts: 29
Joined: Fri Apr 27, 2018 1:27 pm

Re: download pdf file - locked button

Post by Laertes »

Tank you!
Post Reply