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
PdfImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExtract boolean.Gets image.booleaninsertPages(String uuid, String srcId, int sourceFromPage, int sourceToPage, int insertFromPage) Insert pages boolean.booleanbooleanRemove boolean.booleanRotate boolean.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenbooleanSplit boolean.Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
PdfImpl
PdfImpl
-
-
Method Details
-
setAuthorizationToken
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 boolean 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 boolean.- Specified by:
splitin interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idbaseName- the base 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
-
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 boolean 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 boolean.- Specified by:
removein 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
-
rotate
public boolean 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 boolean.- Specified by:
rotatein interfaceBasePdf- Parameters:
uuid- the uuiddstId- the dst idname- the nameangle- the anglepages- 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
-
insertPages
public boolean insertPages(String uuid, String srcId, int sourceFromPage, int sourceToPage, int insertFromPage) 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 uuidsrcId- the src idsourceFromPage- the source from pagesourceToPage- the source to pageinsertFromPage- the insert from page- 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
-