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 Documentextract(String uuid, String dstId, String name, List<Integer> pages)Extract pages from a document.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.List<Document>split(String uuid, String dstId, String baseName, List<Integer> pages)Split document.
-
-
-
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
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
Split document.- 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
Document extract(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Extract pages from a document.- Parameters:
uuid- the uuiddstId- the dst idname- the namepages- the pages- Returns:
- the new document 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
-
remove
Document remove(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Remove pages of a document- Parameters:
uuid- the uuiddstId- the dst idname- the namepages- the pages- Returns:
- the document updated
- 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
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
Rotate pages of a document.- 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
Document insertPages(String uuid, InsertPagesRequest request) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
Insert pages boolean.- 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
boolean optimize(String uuid) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, AuthException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
-
-