Package com.openkm.sdk4j.impl
Class PdfImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.PdfImpl
-
- All Implemented Interfaces:
BasePdf,Serializable
public class PdfImpl extends ClientImpl implements BasePdf, Serializable
PdfImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanextract(String uuid, String dstId, String name, List<Integer> pages)Extract boolean.InputStreamgetImage(String uuid, int page, String size)Gets image.DocumentinsertPages(String uuid, InsertPagesRequest request)Insert pages boolean.booleanoptimize(String uuid)Documentremove(String uuid, String dstId, String name, List<Integer> pages)Remove pages of a documentDocumentrotate(String uuid, String dstId, String name, Integer angle, List<Integer> pages)Rotate pages of a document.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenList<Document>split(String uuid, String dstId, String baseName, List<Integer> pages)Split document.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
PdfImpl
public PdfImpl(String host)
PdfImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
getImage
public InputStream getImage(String uuid, int page, String size) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, WebserviceException, UnknownException
Description copied from interface:BasePdfGets image.- Specified by:
getImagein interfaceBasePdf- Parameters:
uuid- the uuidpage- the pagesize- the size- Returns:
- the image
- Throws:
RepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionConversionException- the conversion exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
split
public List<Document> split(String uuid, String dstId, String baseName, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Description copied from interface:BasePdfSplit document.- Specified by:
splitin interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idbaseName- the base namepages- the pages- Returns:
- the documents created
- Throws:
DatabaseException- the database exceptionRepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDocumentException- the document exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exceptionVirusDetectedException- the virus detected exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
extract
public boolean extract(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Description copied from interface:BasePdfExtract boolean.- Specified by:
extractin interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idname- the namepages- the pages- Returns:
- the boolean
- Throws:
DatabaseException- the database exceptionRepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDocumentException- the document exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exceptionVirusDetectedException- the virus detected exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
remove
public Document remove(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Description copied from interface:BasePdfRemove pages of a document- Specified by:
removein interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idname- the namepages- the pages- Returns:
- the document updated
- Throws:
DatabaseException- the database exceptionRepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDocumentException- the document exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exceptionVirusDetectedException- the virus detected exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
rotate
public Document rotate(String uuid, String dstId, String name, Integer angle, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Description copied from interface:BasePdfRotate pages of a document.- Specified by:
rotatein interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idname- the nameangle- the anglepages- the pages- Returns:
- the document with pages rotated
- Throws:
DatabaseException- the database exceptionRepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDocumentException- the document exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exceptionVirusDetectedException- the virus detected exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
insertPages
public Document insertPages(String uuid, InsertPagesRequest request) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Description copied from interface:BasePdfInsert pages boolean.- Specified by:
insertPagesin interfaceBasePdf- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
DatabaseException- the database exceptionRepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDocumentException- the document exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionAuthException- the principal adapter exceptionItemExistsException- the item exists exceptionVirusDetectedException- the virus detected exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
optimize
public boolean optimize(String uuid) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
-
-