public class PDFViewerRESTService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
PDFViewerRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cache.CacheService caService,
JodConverterService jodConverter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCoverImage(String repoName,
String wsName,
String uuid,
String pageNumber,
String rotation,
String scale)
Returns a thumbnail image for a PDF document.
|
File |
getPDFDocumentFile(javax.jcr.Node currentNode,
String repoName)
Writes PDF data to file.
|
javax.ws.rs.core.Response |
getPDFFile(String repoName,
String wsName,
String uuid)
Returns a pdf file for a PDF document.
|
org.icepdf.core.pobjects.Document |
initDocument(javax.jcr.Node currentNode,
String repoName)
Initializes the PDF document from InputStream in the _nt\:file_ node.
|
public PDFViewerRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cache.CacheService caService,
JodConverterService jodConverter)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getCoverImage(String repoName, String wsName, String uuid, String pageNumber, String rotation, String scale) throws Exception
repoName - The repository name.wsName - The workspace name.uuid - The identifier of the document.pageNumber - The page number.rotation - The page rotation. The valid values are: 0.0f, 90.0f, 180.0f, 270.0f.scale - The Zoom factor which is applied to the rendered page.Exception - The exceptionpublic javax.ws.rs.core.Response getPDFFile(String repoName, String wsName, String uuid) throws Exception
repoName - The repository name.wsName - The workspace name.uuid - The identifier of the document.Exception - The exceptionpublic org.icepdf.core.pobjects.Document initDocument(javax.jcr.Node currentNode,
String repoName)
throws Exception
currentNode - The name of the current node.repoName - The repository name.ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.