com.icesoft.pdf.ri.servlet
Class JSPNavigatorBean
java.lang.Object
com.icesoft.pdf.ri.servlet.JSPNavigatorBean
- All Implemented Interfaces:
- EventListener, javax.servlet.http.HttpSessionBindingListener, javax.servlet.http.HttpSessionListener
- public class JSPNavigatorBean
- extends Object
- implements javax.servlet.http.HttpSessionListener, javax.servlet.http.HttpSessionBindingListener
The JSPNavigatorBean is part of the servlet example and acts
as a bridge between the Render and Document classes.
Its main purpose is to provide an interface in which the Render
class can use for taking image captures of individual pages of a PDF document.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZOOM_LEVELS
public static final float[] ZOOM_LEVELS
JSPNavigatorBean
public JSPNavigatorBean()
setUrl
public void setUrl(String newUrl)
throws PDFException
- Parameters:
newUrl -
- Throws:
PDFException
setFile
public void setFile(String filePath)
throws PDFException
- Throws:
PDFException
getDocumentTitle
public String getDocumentTitle()
recursivelyBuildOutlinesInHTML
public static void recursivelyBuildOutlinesInHTML(StringBuffer sb,
PageTree pageTree,
OutlineItem item,
int depth)
getDocument
public Document getDocument()
getUrl
public String getUrl()
setPageNumber
public void setPageNumber(int newPageNumber)
- Parameters:
newPageNumber -
getPageNumber
public int getPageNumber()
setZoomFactor
public void setZoomFactor(float newZoomFactor)
- Parameters:
newZoomFactor -
getZoomLevels
public float[] getZoomLevels()
getZoomFactor
public float getZoomFactor()
setPageWidth
public void setPageWidth(int newPageWidth)
- Parameters:
newPageWidth -
getPageWidth
public int getPageWidth()
setPageHeight
public void setPageHeight(int newPageHeight)
getPageHeight
public int getPageHeight()
setViewportWidth
public void setViewportWidth(int newViewportWidth)
getViewportWidth
public int getViewportWidth()
setViewportHeight
public void setViewportHeight(int newViewportHeight)
getViewportHeight
public int getViewportHeight()
getNumberOfPages
public int getNumberOfPages()
setFitPage
public void setFitPage(int newFitPage)
getFitPage
public int getFitPage()
setFitWidth
public void setFitWidth(int newFitWidth)
getFitWidth
public int getFitWidth()
setZoomIn
public void setZoomIn(int newZoomIn)
getZoomIn
public int getZoomIn()
setZoomOut
public void setZoomOut(int newZoomOut)
getZoomOut
public int getZoomOut()
setFirstPage
public void setFirstPage(int newFirstPage)
getFirstPage
public int getFirstPage()
setPreviousPage
public void setPreviousPage(int newPrevPage)
getPreviousPage
public int getPreviousPage()
setNextPage
public void setNextPage(int newNextPage)
getNextPage
public int getNextPage()
setLastPage
public void setLastPage(int newLastPage)
getLastPage
public int getLastPage()
setRotateRight
public void setRotateRight(int newRotateRight)
getRotateRight
public int getRotateRight()
setRotateLeft
public void setRotateLeft(int newRotateLeft)
getRotateLeft
public int getRotateLeft()
setRotateFactor
public void setRotateFactor(int newRotateFactor)
getRotateFactor
public int getRotateFactor()
getOutlines
public String getOutlines()
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
- Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
valueBound
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
- Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
valueUnbound
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
- Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
getAnnotations
public String getAnnotations()