Where pdf files are saved when opened in browser? - pdf

I have few questions:
Where pdf files are saved when opened in browser?
Is it possible when i open pdf in Chrome, access that file somewhere
in my pc system?

They are stored at this path %USERPROFILE%\AppData\Local\ in Windows. Run this command %TEMP% in the run dialog box to visit the folder.

Related

Issue opening pdf from VC++ application

I am currently using
int nRet=(int)ShellExecute(NULL,
_T("open"),
_T("\"")+cPathToFile+_T("\""),
_T(""),
cDir,
SW_SHOW);
to open a pdf file from my VC++ application. The file opens correctly but then if I try to open another file from the explorer it doesn't show up. If I close the previuos opened file then all works correctly, as if the application was "locking" the pdf viewer.
Is this a normal/known behaviour?

Download the .exe file instead of .htm file

My website has an option of downloading a .exe file. I uploaded this .exe file in dropbox and use the shared link in my website for the users to download the file.
I use href in my index.php page to create a link to that file:
<a href="https://www.dropbox.com/s/........./File.exe?dl=0" download="File">
But when users click that link in my website it downloads the .htm file. The users need to click this .htm file again which then leads to the download of the .exe file. At times users also get the error "There was an error downloading your file." while downloading the file from dropbox. I would like to know how to get the link to download the .exe file directly. Thanks!!!
When you use ?d1=0 at the end of your file path it will show the file in a preview page. Try changing it to ?dl=1to force the download.
https://www.dropbox.com/help/desktop-web/force-download

PDF file starts downloading

I am giving a link to a pdf file but it starts downloading the file instead of opening it
Complains
It could be that you don't have a pdf reader plugin installed on your browser.

autorun.inf file not working on pc

I created an autorun.inf file for my dvd so that it would display a splash page (just an image), then go directly to and open a pdf. As well as set the icon for the drive. However the icon didn't change, and neither the splash page or pdf opened or displayed upon inserting the disc.
My code in the autorun.info file is as follows
[AutoRun]
OPEN=winopen \start_here.pdf filename splash.jpg
ICON=icon.ico
The .inf file is sitting in the same folder as the start_here.pdf, the splash.jpg and the icon.ico.
Thoughts?
Open statement does not open the associated file, but only executable and html-files. To launch the associated files by their extensions, you must use "ShellExecute" statement.
The shellexecute command is more flexible than the open command and will allow you to open nearly any file on a PC in its native application, so can be used for PDFs, Word files, web pages and movies where the open command would not work.
[AutoRun]
shellexecute=myfile.pdf

.xlsx downloading issue

I have generated .xlsx reports on server, and page with direct links to these reports.
When user clicks a link, report file is downloaded, but file extension is changed to .xls.
Therefore, I can't open file correctly, only after changing of extension.
Problem occurs in IE, Firefox correctly downloads file, and Chrome saves file with name "File.xlsx.xls"
What can cause such behaviour? Any help appreciated.
Problem fixed with setting of mime-type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" for .xlsx files