The category, subcategory, and provider pages each have a print button. For example, when clicking the print button on the subcategory page, a function generates a PDF of the page contents, searches for a printer connection and brings up a print dialogue box. If no printer is found, maybe a download PDF option or send PDF to an email address?
The function is now on the category and subcategory pages, and I'll add it to the provider page after Daniel's finishes refactoring the JavaScript code used for the provider page.
The category, subcategory, and provider pages each have a print button. For example, when clicking the print button on the subcategory page, a function generates a PDF of the page contents, searches for a printer connection and brings up a print dialogue box. If no printer is found, maybe a download PDF option or send PDF to an email address?
Some resources:
https://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm
https://www.tutorialspoint.com/How-to-print-a-page-using-JavaScript
https://www.codexworld.com/print-page-area-javascript/