Package com.openkm.sdk4j.definition
Interface BasePdf
-
- All Known Implementing Classes:
PdfImpl
public interface BasePdfBasePdf- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract 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.booleaninsertPages(String uuid, String srcId, int sourceFromPage, int sourceToPage, int insertFromPage)Insert pages boolean.booleanoptimize(String uuid)booleanremove(String uuid, String dstId, String name, List<Integer> pages)Remove boolean.booleanrotate(String uuid, String dstId, String name, Integer angle, List<Integer> pages)Rotate boolean.booleansplit(String uuid, String dstId, String baseName, List<Integer> pages)Split boolean.
-
-
-
Method Detail
-
getImage
InputStream getImage(String uuid, int page, String size) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, WebserviceException, UnknownException
Gets image.- 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
boolean split(String uuid, String dstId, String baseName, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Split boolean.- 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
boolean extract(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Extract boolean.- 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
boolean remove(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Remove boolean.- Parameters:
uuid- the uuiddstId- the dst idname- the namepages- the pages- Returns:
- the boolean
- Throws:
DatabaseException- the database exceptionIOException- the io 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
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
Rotate boolean.- 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
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
Insert pages boolean.- 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
boolean optimize(String uuid) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
-
-