Package com.openkm.sdk4j.definition
Interface BaseConversion
- All Known Implementing Classes:
ConversionImpl
public interface BaseConversion
BaseConversion
- Author:
- sochoa
-
Method Summary
Modifier and TypeMethodDescriptionbarcode2txt(InputStream is, String fileName) Extracts the barcode text from the uploaded image.doc2pdf(InputStream is, String fileName) Retrieve the uploaded document converted to PDF format.doc2txt(InputStream is, String fileName) Extracts the text from the upload document.Retrieve the PDF of an URL.imageConvert(InputStream is, String fileName, String params, String dstMimeType) Retrieve the uploaded image with transformation.img2txt(InputStream is, String fileName) Extracts the text from the uploaded image.
-
Method Details
-
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
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
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
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
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
-