public final class PdfjsViewerUtil extends Object implements Serializable
PdfjsViewerImpl
and pdfjsViewerWindow.jsp.Modifier and Type | Field and Description |
---|---|
static String |
USE_EMBED_PDF_MODE |
Constructor and Description |
---|
PdfjsViewerUtil(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRender(String filename) |
String |
getAdditionalParams() |
String |
getAdobePluginOptions()
Returns the options for the Adobe Plugin as set in the configuration file.
|
PdfjsViewerDisplayMode |
getDisplayMode(OpenDocumentBean bean)
Returns the way the current element must be displayed.
|
PdfjsViewerDisplayMode |
getDisplayMode(OpenDocumentBean bean,
String name)
Returns the way the current element must be displayed.
|
PdfjsViewerDisplayMode |
getDisplayModeForTemporaryDocs(String name) |
boolean |
isImage(String filename) |
boolean |
isMp4(String filename) |
boolean |
isPdf(String filename) |
void |
removeRenderTargetInBean(OpenDocumentBean bean)
Removes the 'targetFormat' parameter from the bean.
|
void |
setRenderTargetInBean(OpenDocumentBean bean)
Adds a parameter 'targetFormat' in the bean, which will cause the
ViewDocumentServlet
to render the element as PDF. |
public static final String USE_EMBED_PDF_MODE
public PdfjsViewerUtil(javax.servlet.http.HttpServletRequest request)
public boolean isImage(String filename)
filename
- filename of element to displaypublic boolean isPdf(String filename)
filename
- filename of element to displaypublic boolean isMp4(String filename)
filename
- filename of element to displaypublic boolean canRender(String filename)
filename
- filename of element to displaypublic PdfjsViewerDisplayMode getDisplayMode(OpenDocumentBean bean)
ViewDocumentServlet
. If a target format is set, the servlet will render
the element before delivering it.bean
- OpenDocumentBean
of the viewerpublic String getAdobePluginOptions()
public PdfjsViewerDisplayMode getDisplayMode(OpenDocumentBean bean, String name)
ViewDocumentServlet
. If a target format is set, the servlet will render
the element before delivering it.bean
- OpenDocumentBean
of the viewerpublic PdfjsViewerDisplayMode getDisplayModeForTemporaryDocs(String name)
name
- name of the temporary element to displaypublic void setRenderTargetInBean(OpenDocumentBean bean)
ViewDocumentServlet
to render the element as PDF.bean
- OpenDocumentBean
of the viewerpublic void removeRenderTargetInBean(OpenDocumentBean bean)
bean
- OpenDocumentBean
of the viewerpublic String getAdditionalParams()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.