Class RotatePage

java.lang.Object
org.jpedal.manipulator.RotatePage
All Implemented Interfaces:
Manipulation

public class RotatePage extends Object implements Manipulation
Rotates pages by the specified angle (current page rotation + supplied angle)

To set a page's rotation, see SetRotation

  • Constructor Summary

    Constructors
    Constructor
    Description
    RotatePage(PageRanges pages, int angle)
    Rotates pages by the specified angle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jpedal.io.annotation.utils.AnnotInfo info)
    Applies the manipulation to the current document

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RotatePage

      public RotatePage(PageRanges pages, int angle)
      Rotates pages by the specified angle.
      Parameters:
      pages - the pages to rotate
      angle - the number of degrees by which the page shall be rotated clockwise. Must be a multiple of 90
  • Method Details

    • apply

      public void apply(org.jpedal.io.annotation.utils.AnnotInfo info) throws IOException
      Description copied from interface: Manipulation
      Applies the manipulation to the current document
      Specified by:
      apply in interface Manipulation
      Parameters:
      info - the AnnotInfo object for the currently loaded document
      Throws:
      IOException - if the manipulation cannot be applied to the document