Skip to main content

Printer Paper Orientation Settings (Linux)

Workaround for Paper Orientation Issue in Java Applications (CUPS) on Linux

Written by Petr Pech

What Is Happening

When printing from ABRA Flexi on Linux OS via the CUPS system, some reports are printed in the wrong paper orientation (e.g., landscape instead of portrait).

The issue only occurs in Java applications (ABRA Flexi prints via JasperReports); printing from other applications works correctly.


Cause

Java applications communicating with CUPS are sometimes unable to correctly read the paper orientation from the printer definition. The print server then uses its default orientation, which does not match the one required by the report.


Solution

The issue can be worked around by setting the default paper orientation directly in the printer configuration:

  1. In the system menu, select System → Administration → Printing.

  2. Select the printer you are using.

  3. Open the last tab, Job Options.

  4. Set the Orientation item to Portrait (no rotation).

This setting only changes the default orientation of the printer — it will still be possible to print pages in landscape orientation if a specific report requires it.


Related Articles

Did this answer your question?