org.sejda.impl.pdfbox.component
Class PdfRotator

java.lang.Object
  extended by org.sejda.impl.pdfbox.component.PdfRotator
All Implemented Interfaces:
OngoingRotation

public final class PdfRotator
extends Object
implements OngoingRotation

Handles rotations on a given PDDocument.

Author:
Nero Couvalli

Method Summary
static OngoingRotation applyRotation(PageRotation rotation)
          DSL entry point to apply a rotation
 void to(org.apache.pdfbox.pdmodel.PDDocument document)
          applies the rotation to the input document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

applyRotation

public static OngoingRotation applyRotation(PageRotation rotation)
DSL entry point to apply a rotation

applyRotation(rotation).to(document);

Parameters:
rotation -
Returns:
the ongoing apply rotation exposing methods to set the document you want to apply the rotation to.

to

public void to(org.apache.pdfbox.pdmodel.PDDocument document)
Description copied from interface: OngoingRotation
applies the rotation to the input document

Specified by:
to in interface OngoingRotation


Copyright © 2012. All Rights Reserved.