Package org.plutext.msgraph.convert
Interface OpenXmlToPDF
-
- All Known Implementing Classes:
AbstractOpenXmlToPDF,DocxToPdfConverter,PdfConverter,PptxToPdfConverter,XlsxToPdfConverter
public interface OpenXmlToPDFThe Microsoft Graph API supports conversion to PDF only. It relies on the filename extension (eg .docx) for conversion; you'll get an error if the uploaded file has no extension. So our interface uses the file extension, rather than mime type or content type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]convert(byte[] bytes, java.lang.String ext)byte[]convert(java.io.InputStream is, java.lang.String ext)
-
-
-
Method Detail
-
convert
byte[] convert(byte[] bytes, java.lang.String ext) throws ConversionException- Throws:
ConversionException
-
convert
byte[] convert(java.io.InputStream is, java.lang.String ext) throws ConversionException, java.io.IOException- Throws:
ConversionExceptionjava.io.IOException
-
-