Rahul Gulati
Rahul Gulati

Reputation: 363

How do I show a File Saveas dialog from a Chrome Extension?

I'm creating an extension for Google Chrome that converts a webpage into a PDF file. From the JavaScript background page, the URL, DOM, and the path are passed to the NPAPI DLL, where the conversion happens. For now, the path is hard-coded. I want to add a File Saveas dialog to the extension, and grab the path from it, with the file name, and pass it to the NPAPI DLL. What should I do?

Upvotes: 0

Views: 468

Answers (1)

taxilian
taxilian

Reputation: 14324

Why would you do the file save-as dialog in the extension if you are just going to have it pass to the NPAPI dll? If it were me I'd just have the NPAPI dll pop up the save dialog.

Upvotes: 1

Related Questions