public class MSTPdf extends MSTDocument
| Modifier and Type | Field and Description |
|---|---|
java.io.ByteArrayInputStream |
bin |
static MST.Imaging.Document.MSTech.DocumentServiceProvider |
DocEngine |
MST.Imaging.Document.MSTech.Document |
hDocument |
java.awt.Image[] |
imageArray |
FileName, FileStream, PageCount, Size, Uri| Constructor and Description |
|---|
MSTPdf() |
| Modifier and Type | Method and Description |
|---|---|
FileFormat |
Detect()
Gives the file format for the corresponding IMSTFileFormat object.
|
boolean |
DropDocument()
All the reference of the corresponding document are made null.
|
boolean |
Export(java.io.FileOutputStream fos,
OutputType outputtype)
Exports the file in specified output type.
|
boolean |
Export(java.lang.String DestFileName,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
Exports the file in specified output type.
|
void |
gateWay(java.util.List objList,
java.io.OutputStream destFileName,
FileFormat fileFormat) |
java.lang.String |
getFileName()
Gives the name of the file loaded into the MSTImage object.
|
java.io.InputStream |
getFileStream()
Gives the Inputstream of the file.
|
java.lang.String |
getMimeType(int fileType) |
IMSTPage |
GetPage(int pageNo)
This method loads the page data into the IMSTPage object.
|
IMSTPage |
GetPage(int PageNo,
PageInfo pgInfo)
This method loads the page data into the IMSTPage object with the given parameters in PageInfo.
|
int |
getPageCount()
Gives the number of pages in the file.
|
boolean |
GetPageInfo(int[] pageNo,
PageInfo[] pageInfo)
Gives the information about the given array of pages .
|
boolean |
GetPageInfo(int pageNo,
PageInfo pageInfo)
Gives the information about a specific page .
|
IMSTPage[] |
GetPages(int fromPage,
int toPage,
java.util.List<PageInfo> listPageInfo)
This method loads the page data into the IMSTPage object with the given parameters in PageInfo.
|
java.lang.String |
getPdfAnnotation(java.lang.String n)
This is to get the pdf annotation in the form of xml file.
|
int |
getSize()
Gives the size of byte array of the loaded file.
|
boolean |
Load(java.io.InputStream stream)
This method loads the image data into the MSTImage object.
|
boolean |
Load(java.lang.String FileName)
This method loads the image data into the MSTImage object.
|
boolean |
Load(java.net.URI uri)
This method loads the image data into the MSTImage object.
|
boolean |
setPdfAnnotation(java.lang.String xmlFilePath)
This is to embedd the pdf annotation exported from the xml file.
|
Export, Export, getCompressionpublic java.awt.Image[] imageArray
public java.io.ByteArrayInputStream bin
public MST.Imaging.Document.MSTech.Document hDocument
public static MST.Imaging.Document.MSTech.DocumentServiceProvider DocEngine
public MSTPdf()
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.Exception
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.Exceptionpublic boolean Load(java.lang.String FileName)
IMSTFileFormatLoad in interface IMSTFileFormatLoad in class MSTDocumentFileName - Either name or the path of file.public boolean Load(java.io.InputStream stream)
IMSTFileFormatLoad in interface IMSTFileFormatLoad in class MSTDocumentstream - InputStream object associated with the file that is to be loaded.public boolean Load(java.net.URI uri)
IMSTFileFormatLoad in interface IMSTFileFormatLoad in class MSTDocumenturi - URI path of the file.public boolean DropDocument()
IMSTFileFormatDropDocument in interface IMSTFileFormatDropDocument in class MSTDocumentpublic IMSTPage GetPage(int pageNo)
IMSTFileFormatGetPage in interface IMSTFileFormatGetPage in class MSTDocumentpageNo - page no of which the page data is to be loaded.public IMSTPage GetPage(int PageNo, PageInfo pgInfo)
IMSTFileFormatGetPage in interface IMSTFileFormatGetPage in class MSTDocumentpgInfo - PageInfo Object having parameters as rotate,scale to be applied.public IMSTPage[] GetPages(int fromPage, int toPage, java.util.List<PageInfo> listPageInfo)
IMSTFileFormatGetPages in interface IMSTFileFormatGetPages in class MSTDocumentfromPage - Range of pages.toPage - Range of pages.listPageInfo - List having the PageInfo objectspublic boolean GetPageInfo(int pageNo,
PageInfo pageInfo)
IMSTFileFormatGetPageInfo in interface IMSTFileFormatGetPageInfo in class MSTDocumentpageNo - page no. of which the information is to be filled into the referenced PageInfo object.pageInfo - PageInfo object reference.public boolean GetPageInfo(int[] pageNo,
PageInfo[] pageInfo)
IMSTFileFormatGetPageInfo in interface IMSTFileFormatGetPageInfo in class MSTDocumentpageNo - page no. of which the information is to be filled into the referenced PageInfo object.pageInfo - PageInfo object reference.public boolean Export(java.lang.String DestFileName,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
IMSTFileFormatExport in interface IMSTFileFormatExport in class MSTDocumentDestFileName - name of file in which the file is to be saved.outputtype - MIME type of file which is to be saved.Annotations - string contains the data about annotation.options - saving options with specified output type with scaling,bitdepth,rotation,compression,annotation,pageno.public boolean Export(java.io.FileOutputStream fos,
OutputType outputtype)
IMSTFileFormatExport in interface IMSTFileFormatExport in class MSTDocumentfos - streaming file in which output image is saved.outputtype - MIME type of file which is to be saved.public java.lang.String getFileName()
IMSTFileFormatgetFileName in interface IMSTFileFormatgetFileName in class MSTDocumentpublic java.io.InputStream getFileStream()
IMSTFileFormatgetFileStream in interface IMSTFileFormatgetFileStream in class MSTDocumentpublic int getPageCount()
IMSTFileFormatgetPageCount in interface IMSTFileFormatgetPageCount in class MSTDocumentpublic int getSize()
IMSTFileFormatgetSize in interface IMSTFileFormatgetSize in class MSTDocumentpublic java.lang.String getMimeType(int fileType)
getMimeType in class MSTDocumentpublic FileFormat Detect()
IMSTFileFormatDetect in interface IMSTFileFormatDetect in class MSTDocumentpublic void gateWay(java.util.List objList,
java.io.OutputStream destFileName,
FileFormat fileFormat)
public boolean setPdfAnnotation(java.lang.String xmlFilePath)
n - source file name (xml annotation file name).public java.lang.String getPdfAnnotation(java.lang.String n)
n - destination file name.