public class VirtualViewerAnnotationConverter extends Object implements AnnotationConverter
| Constructor and Description |
|---|
VirtualViewerAnnotationConverter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convert(String original,
String ixosAnnotationsIni,
int ixosPage)
Converts the annotations to the desired format.
|
void |
setDimension(int width,
int height)
Set document dimension.
|
void |
setDocumentInfos(OpenDocumentBean openDocumentBean)
Used to pass information about the document to the converter.
|
void |
setEmpty(boolean empty)
Used to notify the converter that the document has no annotations.
|
void |
setSession(javax.servlet.http.HttpSession session)
Passes the current session to the converter, if it is available.
|
void |
setViewerId(String viewerId)
Used to pass the ID of the viewer that requested the annotations to the converter.
|
public void setSession(javax.servlet.http.HttpSession session)
setSession in interface AnnotationConvertersession - the sessionAnnotationConverter.setSession(javax.servlet.http.HttpSession)public void setEmpty(boolean empty)
setEmpty in interface AnnotationConverterempty - true if the document has no annotationsAnnotationConverter.setEmpty(boolean)public void setViewerId(String viewerId)
setViewerId in interface AnnotationConverterviewerId - ID of the viewerAnnotationConverter.setViewerId(java.lang.String)public void setDocumentInfos(OpenDocumentBean openDocumentBean)
setDocumentInfos in interface AnnotationConverteropenDocumentBean - the bean containing information about the opened documentAnnotationConverter.setDocumentInfos(com.saperion.ngc.viewer.OpenDocumentBean)public byte[] convert(String original, String ixosAnnotationsIni, int ixosPage) throws ConvertAnnotationException
convert in interface AnnotationConverteroriginal - original annotations represented as StringixosAnnotationsIni - IXOS annotationsixosPage - IXOS page numberConvertAnnotationException - when converting the annotations failedcom.saperion.ngc.servlet.AnnotationConverter#convert(java.lang.String)public void setDimension(int width,
int height)
AnnotationConvertersetDimension in interface AnnotationConverterwidth - Widthheight - HeightCopyright © 2016 SAPERION AG. All rights reserved.