fop-pdf-images 2.3

org.apache.fop.render.pdf.pdfbox
Class PDFUtil

java.lang.Object
  extended by org.apache.fop.render.pdf.pdfbox.PDFUtil

public final class PDFUtil
extends java.lang.Object

Common utility functions for PDF access.


Method Summary
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)

fop-pdf-images 2.3

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