public class PowerPointDocument extends Object
Constructor and Description |
---|
PowerPointDocument(InputStream inputStream,
PowerPointConvertOptions opts)
Load a PowerPoint document from a stream - with convert options.
|
PowerPointDocument(String filePath,
PowerPointConvertOptions opts)
Load a PowerPoint document from a file - with convert options.
|
Modifier and Type | Method and Description |
---|---|
static String |
getVersion()
Returns version string for jOfficeConvert.
|
void |
saveAsPDF(OutputStream pdfOutStream)
Converts the PowerPoint document into a PDF document then
saves the created PDF Document to a file using an Output Stream
|
void |
saveAsPDF(String pdfFile)
Converts the PowerPoint document into a PDF document then
saves the created PDF Document to a file using a String filename
|
void |
saveDocumentAsTIFF(String fileName,
TIFFOptions options)
Save the entire document as a multi-page TIFF image to the given String Filename.
|
static boolean |
setKey(String officeKey)
Sets product key.
|
public PowerPointDocument(String filePath, PowerPointConvertOptions opts) throws FileNotFoundException, OfficeException
filePath
- The path to the file.opts
- The PowerPoint conversion options.FileNotFoundException
OfficeException
public PowerPointDocument(InputStream inputStream, PowerPointConvertOptions opts) throws OfficeException
inputStream
- InputStream representing the PowerPoint file.opts
- The PowerPoint conversion options.OfficeException
public static boolean setKey(String officeKey)
officeKey
- Product key.public void saveAsPDF(OutputStream pdfOutStream) throws IOException, PDFException
pdfOutStream
- Output Stream the PDF document will be written toPDFException
IOException
public static String getVersion()
public void saveAsPDF(String pdfFile) throws IOException, PDFException
pdfFile
- String representing the name of the file to save toPDFException
IOException
public void saveDocumentAsTIFF(String fileName, TIFFOptions options) throws IOException, OfficeException
TIFFOptions
object as an argument to describe various
TIFF options when saving the file.fileName
- The name of the file to write the TIFF image to.options
- Options to use when saving the TIFF file.IOException
OfficeException