As a junior developer, my current project involves creating a resume on github.io that is employer-friendly. While I have successfully set up print settings in chrome and firefox resulting in a 2-page format, safari and edge display it as 4 pages.
An important feature I implemented was a "download pdf" button which generates a well-formatted pdf mirroring the print settings. My goal is to ensure that both the download pdf and general print buttons produce the same format for employers’ convenience.
I am exploring ways to automatically use the pdf file when the print option is selected, instead of printing the webpage itself. This would streamline the process and guarantee consistent formatting across all browsers without the need for individual setup.
If necessary, I am willing to incorporate scripts to achieve this functionality.