Good morning everyone, due to the many requests I've received from my clients, I've created a function that allows you to print the content of a page created with Page Builder, in a specific A4 format.
I created this script for a specific need: managing several scientific websites, I often need to enable the printing of dynamic, often changing content. This way (for example, conference programs) anyone printing them always has an updated version (even in PDF format).
I've also included a simple function that allows me to exclude anything that shouldn't be printed.
I initially considered using the JPDF and J2CANVA libraries, but unfortunately there are many browser compatibility issues, so I chose to start with the basic @media print function and then customize all the content.
For example, I like all printouts to start with a full image without margins, to include page breaks for conference days, and much more.
I'm not yet at the final version. It works well with Firefox, Chrome, and Edge. There are known limitations with Safari, but I've found a good compromise, and I've solved the printing limitations on smartphones and tablets, especially on iOS.
I'd like to create this feature as an ADD-ON, so I can drag it to the desired location when creating a page.
So I'm asking Joomshaper if there are instructions on how to include all this in an add-on that can then be installed on the sites I need it for.
Thanks