public class PdfImpl extends ClientImpl implements BasePdf, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
extract(String uuid,
String dstId,
String name,
List<Integer> pages)
Extract boolean.
|
InputStream |
getImage(String uuid,
int page,
String size)
Gets image.
|
boolean |
remove(String uuid,
String dstId,
String name,
List<Integer> pages)
Remove boolean.
|
boolean |
rotate(String uuid,
String dstId,
String name,
Integer angle,
List<Integer> pages)
Rotate boolean.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
boolean |
split(String uuid,
String dstId,
String baseName,
List<Integer> pages)
Split boolean.
|
getClient, resource, resource
public PdfImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public InputStream getImage(String uuid, int page, String size) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, WebserviceException, UnknownException
BasePdf
getImage
in interface BasePdf
uuid
- the uuidpage
- the pagesize
- the sizeRepositoryException
- the repository exceptionAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionConversionException
- the conversion exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic boolean split(String uuid, String dstId, String baseName, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, PrincipalAdapterException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
BasePdf
split
in interface BasePdf
uuid
- the uuiddstId
- the dst idbaseName
- the base namepages
- the pagesDatabaseException
- 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 exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic boolean extract(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, PrincipalAdapterException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
BasePdf
extract
in interface BasePdf
uuid
- the uuiddstId
- the dst idname
- the namepages
- the pagesDatabaseException
- 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 exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic boolean remove(String uuid, String dstId, String name, List<Integer> pages) throws DatabaseException, IOException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, PrincipalAdapterException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
BasePdf
remove
in interface BasePdf
uuid
- the uuiddstId
- the dst idname
- the namepages
- the pagesDatabaseException
- 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 exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic boolean rotate(String uuid, String dstId, String name, Integer angle, List<Integer> pages) throws DatabaseException, RepositoryException, AccessDeniedException, PathNotFoundException, DocumentException, AutomationException, UnsupportedMimeTypeException, PrincipalAdapterException, ItemExistsException, VirusDetectedException, UnknownException, WebserviceException
BasePdf
rotate
in interface BasePdf
uuid
- the uuiddstId
- the dst idname
- the nameangle
- the anglepages
- the pagesDatabaseException
- 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 exceptionPrincipalAdapterException
- the principal adapter exceptionItemExistsException
- the item exists exceptionVirusDetectedException
- the virus detected exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.