Package org.jpedal.manipulator
Class AddImage
java.lang.Object
org.jpedal.manipulator.AddImage
- All Implemented Interfaces:
Manipulation
Adds an image to a document
-
Constructor Summary
ConstructorsConstructorDescriptionAddImage
(PageRanges pages, BufferedImage image, float[] rect) Adds an image onto the specified pages. -
Method Summary
-
Constructor Details
-
AddImage
Adds an image onto the specified pages.- Parameters:
pages
- the pages to add the image toimage
- the image to addrect
- a rectangle specifying the origin and dimensions of the image
-
-
Method Details
-
apply
Description copied from interface:Manipulation
Applies the manipulation to the current document- Specified by:
apply
in interfaceManipulation
- Parameters:
info
- theAnnotInfo
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 documentpageNumber
- the page to add an image to- Throws:
IOException
- if the document cannot be processed
-