Package com.openkm.sdk4j.definition
Interface BaseConversion
-
- All Known Implementing Classes:
ConversionImpl
public interface BaseConversionBaseConversion- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringbarcode2txt(InputStream is, String fileName)Extracts the barcode text from the uploaded image.InputStreamdoc2pdf(InputStream is, String fileName)Retrieve the uploaded document converted to PDF format.Stringdoc2txt(InputStream is, String fileName)Extracts the text from the upload document.InputStreamhtml2pdf(String url)Retrieve the PDF of an URL.InputStreamimageConvert(InputStream is, String fileName, String params, String dstMimeType)Retrieve the uploaded image with transformation.Stringimg2txt(InputStream is, String fileName)Extracts the text from the uploaded image.
-
-
-
Method Detail
-
doc2pdf
InputStream doc2pdf(InputStream is, String fileName) throws ConversionException, WebserviceException, UnknownException
Retrieve the uploaded document converted to PDF format.- Parameters:
is- The content of the filefileName- the file name- Returns:
- InputStream input stream
- Throws:
ConversionException- the conversion exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
imageConvert
InputStream imageConvert(InputStream is, String fileName, String params, String dstMimeType) throws WebserviceException, UnknownException
Retrieve the uploaded image with transformation.- Parameters:
is- The content of the filefileName- the file nameparams- the paramsdstMimeType- the dst mime type- Returns:
- InputStream input stream
- Throws:
WebserviceException- the webservice exceptionUnknownException- the unknown exception
-
html2pdf
InputStream html2pdf(String url) throws ConversionException, WebserviceException, UnknownException
Retrieve the PDF of an URL.- Parameters:
url- the url- Returns:
- InputStream input stream
- Throws:
ConversionException- the conversion exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
doc2txt
String doc2txt(InputStream is, String fileName) throws WebserviceException, UnknownException
Extracts the text from the upload document.- Parameters:
is- The content of the filefileName- the file name- Returns:
- String string
- Throws:
WebserviceException- the webservice exceptionUnknownException- the unknown exception
-
img2txt
String img2txt(InputStream is, String fileName) throws WebserviceException, UnknownException
Extracts the text from the uploaded image.- Parameters:
is- The content of the filefileName- The filename- Returns:
- String string
- Throws:
WebserviceException- the webservice exceptionUnknownException- the unknown exception
-
barcode2txt
String barcode2txt(InputStream is, String fileName) throws WebserviceException, UnknownException
Extracts the barcode text from the uploaded image.- Parameters:
is- The content of the filefileName- the file name- Returns:
- String string
- Throws:
WebserviceException- the webservice exceptionUnknownException- the unknown exception
-
-