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 AnnotationConverter
session
- the sessionAnnotationConverter.setSession(javax.servlet.http.HttpSession)
public void setEmpty(boolean empty)
setEmpty
in interface AnnotationConverter
empty
- true if the document has no annotationsAnnotationConverter.setEmpty(boolean)
public void setViewerId(String viewerId)
setViewerId
in interface AnnotationConverter
viewerId
- ID of the viewerAnnotationConverter.setViewerId(java.lang.String)
public void setDocumentInfos(OpenDocumentBean openDocumentBean)
setDocumentInfos
in interface AnnotationConverter
openDocumentBean
- 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 AnnotationConverter
original
- 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)
AnnotationConverter
setDimension
in interface AnnotationConverter
width
- Widthheight
- HeightCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.