Package com.openkm.sdk4j.definition
Interface BasePdf
- All Known Implementing Classes:
PdfImpl
public interface BasePdf
BasePdf
- Author:
- sochoa
-
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.booleanSplit boolean.
-
Method Details
-
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
-