I need to print a pdf file. The file names are listed from a database loop that contains the filenames of files within a folder. I have a script that can directly send to the printer, but I want to open the dialogue page instead. Depending on the file, I may only want certain pages printed.
<button type="button" onclick="printJS({printable:'NEWPDF/<%=VAR2%>.pdf', type:'pdf', showModal:true})">
Also using <script src="https://printjs-4de6.kxcdn.com/print.min.js"></script> <script src="https://printjs-4de6.kxcdn.com/print.min.css"></script>
How do I open the dialogue??
Thanks