Incorrect orientation for printing

I have a MacBook Pro running Mac OS 10.13, LibreOffice 5.4.1.2, and two different printers both HP Envy 4500.

My problem is that documents from LibreOffice will only print in horizontal, not portrait orientation. On Print Preview
the document will have the proper orientation, but as soon as I print, the document will be printed on the horizon not portrait.

It is a problem with LibreOffice because documents will print properly on Text Edit.

I cannot find the place where I can change the orientation of the printing.

There is a reported bug already solved tdf#9290, update to the latest 5.4 version.

Thank you. I will try that.

I am using Version 6.1.3.2 and the printing problem orientation still persists.
I am using mac OS 10.14.1

I am using Mac version 10.14.1

This problem seems to have appeared sometime in version 5 in 2017, and to be fixed in LibreOffice 5.4.4, and LibreOffice 6.0.0. Upgrade your copy of LibreOffice to these versions or later to avoid the bug. More information in issue tdf#92190.

List of questions which seem to be about this same problem: