Print button

I am planning a new website for my band. One thing I want to do is the option for client to directly print a file form our website.
Explanation:
I wil have a page with some technical details that a client can, on that page I would like a button that immediately directs towards a printer. If possible it would be nice if it prints a PDF that I have created with all the information.

What should this button now do? Open the printer dialog, or open a PDF?

Opening the printer dialog. Just like this (not a button btw): Melrose boeken (bio printen)

2 Likes

You can also customise the way the page prints with @media and CSS. Exclude items on the page, reposition, etc…

<style>
@media print {
  /* your css goes in here */
}
</style>
2 Likes

Thank you Pete and Jannis!! That will be quite a study, working with all kinds of code is like a secret language for me… Fortunately I still have some time…

It’s quite simple:

<button onClick="window.print()">Print Me</button>
1 Like

That is indeed surprisingly easy! A very big thank you!!

1 Like