Class AddImage

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

public class AddImage extends Object implements Manipulation
Adds an image to a document
  • Constructor Summary

    Constructors
    Constructor
    Description
    AddImage(PageRanges pages, BufferedImage image, float[] rect)
    Adds an image onto the specified pages.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jpedal.io.annotation.utils.AnnotInfo info)
    Applies the manipulation to the current document
    void
    applyPage(org.jpedal.io.annotation.utils.AnnotInfo info, int pageNumber)
    Applies the add image operation for a single page

    Methods inherited from class java.lang.Object

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

    • AddImage

      public AddImage(PageRanges pages, BufferedImage image, float[] rect)
      Adds an image onto the specified pages.
      Parameters:
      pages - the pages to add the image to
      image - the image to add
      rect - a rectangle specifying the origin and dimensions of the image
  • 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
    • applyPage

      public void applyPage(org.jpedal.io.annotation.utils.AnnotInfo info, int pageNumber) throws IOException
      Applies the add image operation for a single page
      Parameters:
      info - the currently loaded document
      pageNumber - the page to add an image to
      Throws:
      IOException - if the document cannot be processed