Out of the box, Ubuntu Desktop implements a hybrid solution for printing that could get a user in some trouble if they're not careful. These notes are intended to help correct that.
My reference system is running Ubuntu Desktop 18.04.5 on a x86_64 workstation with the default Gnome Project environment. The printer used for testing was a HP LaserJet Pro MFP M130nw connected to the local network over wired ethernet.
Almost everywhere on the Internet you'll see advice to download various components directly from a vendor's site. Don't. Just rely on the Ubuntu packages provided with Desktop 18.04 and later. They are more than sufficient to get the job done.