org.apache.fop.render.pdf.pdfbox

## Class PDFUtil

- java.lang.Object
- - org.apache.fop.render.pdf.pdfbox.PDFUtil

-     public final class PDFUtil
      extends java.lang.Object

  Common utility functions for PDF access.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `getNormalizedRotation(org.apache.pdfbox.pdmodel.PDPage page)` Determines the rotation of a given page and normalizes the returned value to the values 0, 90, 180 and 270.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getNormalizedRotation

          public static int getNormalizedRotation(org.apache.pdfbox.pdmodel.PDPage page)

      Determines the rotation of a given page and normalizes the returned value to the values 0, 90, 180 and 270. If not a multiple of 90 is encountered, 0 is returned.
      Parameters:
        `page` - the page
      Returns:
        the page rotation (0, 90, 180 or 270)

Copyright 2007-2025 The Apache Software Foundation. All Rights Reserved.