0

I have a function that saves a file locally. I want to use the PrintJS to access the file and print it.

The function below is what I have done

 $.fn.openPDF = function (id) {
         printJS({ printable: stores + file_path + id + '.pdf', type: 'raw-html' });
         }

Instead of printing the content of the file, it rather prints the location of the file.

enter image description here

I need help...

I want to print the file directly.

Gabelorm
  • 129
  • 1
  • 2

0 Answers0