Scenario
I have a list of files dynamically generated, and I would like 3 options:
- Open : display in the browser (if it is PDF, JPG, etc);
- Download : download direct;
- Print : Send direct to standard printer .
What I got
View with target="_blank
in tag <a>
:
<td><a href="files/100-1533649017.pdf" target="_blank">MeuArquivo.pdf</a></td>
Download with download
in tag <a>
:
<td><a href="files/100-1533649017.pdf" download>MeuArquivo.pdf</a></td>
Questions
- Immediately, I could not find to send the printer directly , is there a native HTML form for this?
- If there is no native HTML form, what alternatives?
- Is there another way , which I used to view ?
- Is there another way to use download ?