The template was free from Microsoft Powerpoint webpage (I have an Office 365 liscense but any of this can be done for free at Powerpoint Online provided you have a free Microsoft account login username & password), I use cardstock paper available fairly cheap from Walmart although I do use plain white printing paper for setting up the page and running test prints.
This is mainly a problem printing these Powerpoint (.pptx) presentations (certificates)
No the 'HP Deskjet 2540 software' does not allow to adjust margins and header/footer or borders.
If I print an image from 'Windows Photos', the options only allow 'Margin - Normal or Uniform'.
If I print a text file (.txt) it will give variable setting options for margins but nothing more, which I believe would work if I could open a .pptx file with this page setup options.
If I print from a Firefox webpage via ticking - 'file>page setup', It does give some options for 'Margins and Header/Footer.
And when printing from a Powerpoint presentation (.pptx) such as these certificates, it gives only the options that the HP Deskjet 2540 software allows which includes no control over Header/Footer or Borders at all.
see attached images: