I'am using the iframe plugin to display a PDF file. I am able to see the PRINT, DOWNLOAD and SAVE buttons on Chrome and Firefox but not on Microsoft Edge.
This issue has been marked as WONTFIX here. https://connect.microsoft.com/IE/Feedback/Details/1903522
Is there any workaround for this?
Related
I'm using Texify plugin for Pycharm to write latex. After running, I have to go manually to "out" folder and open it with Adobe. How to make Pycharm do that automatically?
I see this option but I don't know how to fill it up.
Adobe locking the pdf file is a well-known issue, and so Adobe is not supported by TeXiFy. Depending on which OS you are on, the following pdf viewers are supported (links to TeXiFy wiki pages):
All: internal PDF viewer, via the PDF viewer plugin.
Windows: SumatraPDF
Linux: Evince, Okular, and Zathura
Mac: Skim
where supported means that the pdf automatically opens on compilation and that forward and backward search should work, the latter possibly after some configuration.
When you want to use some other pdf viewer, make sure that it does not lock the pdf file (so Adobe is not possible) and enter the command you would use to open the viewer from the command line in the Select custom pdf viewer command field. This should work on (at least) most Linux and Mac distributions.
Edit
As of TeXiFy b0.7.4 the internal PDF viewer is supported through the PDF viewer plugin.
Alternatively there is a PDF Plugin, to open it within PyCharm, which you can install from the store.
https://plugins.jetbrains.com/plugin/14494-pdf-viewer
tl;dr How can I make a PDF in the Sphinx html output open directly in the browser (or externally)? I want to click on the link and the PDF just opens.
I am currently trying to make sphinx create a link that opens a PDF file in the browser instead of downloading it. So far I only found the download directive, which is useful but I do not want to download those files as they are already available locally.
If there is no default way is there any way to extend Sphinx to achieve this behaviour?
I am trying to automate a web application wherein clicking a link downloads a PDF file. The default behavior of chromedriver should open a pop-up window for confirmation. I am facing issue with the same, In my case the file is directly downloading without prompting.(I need to pop up to change the file name)
My understanding is that there is no easy way to make Selenium download files. Browsers use native dialogs which cannot be controlled by JavaScript.
Why are you downloading a file in the first place?
Check out this for more detail.
This can be set via settings option,
refer the below link https://support.google.com/chrome/answer/95574
I have a web page which contains a download link. If I click on the link, download dialog window will be launched and asking save or cancel.
If I click on Save, file will get downloaded, it will be closed if I click on Cancel button.
But, Selenium IDE is capturing any actions performed in the dialog window.
Please tell how to handle this situation using Selenium IDE.
Thanks in advance.
Unfortunately save as dialogs cannot be interacted with via javascript so Selenium IDE can't manipulate them.
If you want to click on a link and download a file, you can set up Firefox to automatically save files (without dialog - http://kb.mozillazine.org/File_types_and_download_actions). At lease with this method you can save the file when running localy.
The limitation of this will be that if you wanted to export the selenese and run it on an external testing solution (Saucelabs or Testingbot) it is unlikely that this approach will work.
You can also modify the firefox profile in the setUp method of your test.
profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/msword,application/csv,text/csv,application/rtf,application/xml,text/xml,application/octet-stream,application/vnd.ms-excel,application/zip,text/txt,text/plain,application/pdf,application/x-pdf");
If you have other types of documents you want to download you should look up the MIME type of whatever document you are trying to download and adding it to the comma delimited list.
I have a simple Win32 app writen in C, in which I would like to open PDFs. I know I can compile and link to Poppler library, but is there a way to use Acrobat Reader? Kind of like what browsers do, if you have Reader installed, they are automatically able to display PDF in a window though some plugin interface. The problem is, I never used a plugin, not wrote such an interface. How to? Is it also possible to install Reader afterward and somehow make the app aware of its presence?
I would also like to control, say, the zoom. And what the PDF could be in memory, as well.
Edit:
I just found this [1]:
"If you have installed Adobe Reader, you can add a COM reference to the PDf viewer ActiveX control in VisualStudio and use it inside a WindowsFormsHost control."
but I don't understand what does it says: how do I create "COM reference" and use "WindowsFormsHost" in plain Win32 C?
[1] PDF Libraries to Display a PDF document in WPF
On windows if you type mypdf.pdf and hit return in a Command Prompt it opens the pdf in the associated application (in most cases Adobe Reader). So in c# I start a new process with the pdf as the file to run.
You should be able to do something similar in c without bothering with plugins.
In addition to what Nifle said, if instead of running it as a separate application you want to run Acrobat Reader as a plugin within your application's window (as for example IE runs it within IE's window), Adobe Acrobat Reader download page says,
An ActiveX control for Internet Explorer and a plug-in for Netscape Navigator are included and automatically installed in the browser of your choice.
The plug-in technology is probably the technology called ActiveX.