com.acesoft.aceoffix.wordreader
Class Shape

java.lang.Object
  extended by com.acesoft.aceoffix.wordreader.Shape

public class Shape
extends java.lang.Object

Shape class represents a shape in Microsoft Word.

Representing a shape in Microsoft Word, Shape class is used to read the shapes and pictures in Word.

Version:
5.0
Author:
Acesoft Corporation

Method Summary
 int getIndex()
          Gets the index of the Shape.
 void saveAsJPG(java.lang.String saveAsFileName)
          Saves the current Shape as a JPG file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIndex

public int getIndex()
Gets the index of the Shape.

This Index is the Shape index defined in Microsoft Word.

The index is a 1-based index.


saveAsJPG

public void saveAsJPG(java.lang.String saveAsFileName)
               throws java.lang.Exception
Saves the current Shape as a JPG file.

Parameters:
saveAsFileName - If you want to save the file to the target location, you must specify the absolute path and the filename. If you want to save the file to the website folder, you should use getRealPath() to get the absolute path.
Throws:
java.lang.Exception