Chrome/firefox api for print to pdf
<p>I am new to coding and have a scenario where I have a bunch of files(1000+) located on my machine which I want to print as PDF to another folder on my machine.
Are there some Chrome/Firefox APIs available that I can use to achieve this?
I specifically want to use browser's built in feature for printing purposes to print those files.
I know I can use Selenium to automate this solution but if I can get APIs to do the jab, it would be a cleaner solution.</p>

<p>Thanks in advance.</p>