public final class OfficeConverter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
convertOfficeDocumentToPdf(File docFile, File pdfFile)
Converts an office document to a PDF.
|
static void |
convertOfficeDocumentToPdf(File docFile, File pdfFile, OfficeDocumentConverterProperties properties)
Converts an office document to a PDF with the specified conversion properties.
|
static void |
convertOfficeDocumentToPdf(InputStream docInputStream, OutputStream pdfOutputStream)
Converts an office document to a PDF.
|
static void |
convertOfficeDocumentToPdf(InputStream docInputStream, OutputStream pdfOutputStream, OfficeDocumentConverterProperties properties)
Converts an office document to a PDF with the specified conversion properties.
|
static void |
convertOfficePresentationToPdf(File presentationFile, File pdfFile)
Converts an office presentation to a PDF.
|
static void |
convertOfficePresentationToPdf(File presentationFile, File pdfFile, OfficePresentationConverterProperties properties)
Converts an office presentation to a PDF with the specified conversion properties.
|
static void |
convertOfficePresentationToPdf(InputStream presentationInputStream, OutputStream pdfOutputStream)
Converts an office presentation to a PDF.
|
static void |
convertOfficePresentationToPdf(InputStream presentationInputStream, OutputStream pdfOutputStream, OfficePresentationConverterProperties properties)
Converts an office presentation to a PDF with the specified conversion properties.
|
static void |
convertOfficeSpreadsheetToPdf(File spreadsheetFile, File pdfFile)
Converts an office spreadsheet to a PDF.
|
static void |
convertOfficeSpreadsheetToPdf(File spreadsheetFile, File pdfFile, OfficeSpreadsheetConverterProperties properties)
Converts an office spreadsheet to a PDF with the specified conversion properties.
|
static void |
convertOfficeSpreadsheetToPdf(InputStream spreadsheetInputStream, OutputStream pdfOutputStream)
Converts an office spreadsheet to a PDF.
|
static void |
convertOfficeSpreadsheetToPdf(InputStream spreadsheetInputStream, OutputStream pdfOutputStream, OfficeSpreadsheetConverterProperties properties)
Converts an office spreadsheet to a PDF with the specified conversion properties.
|
public static void convertOfficeDocumentToPdf(File docFile, File pdfFile) throws IOException, PdfOfficeException
docFile
- input document file
pdfFile
- output PDF file
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeDocumentToPdf(InputStream docInputStream, OutputStream pdfOutputStream) throws IOException, PdfOfficeException
docInputStream
- input document stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeDocumentToPdf(File docFile, File pdfFile, OfficeDocumentConverterProperties properties) throws IOException, PdfOfficeException
docFile
- input document file
pdfFile
- output PDF file
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeDocumentToPdf(InputStream docInputStream, OutputStream pdfOutputStream, OfficeDocumentConverterProperties properties) throws IOException, PdfOfficeException
docInputStream
- input document stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficePresentationToPdf(File presentationFile, File pdfFile) throws IOException
presentationFile
- input presentation file
pdfFile
- output PDF file
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficePresentationToPdf(InputStream presentationInputStream, OutputStream pdfOutputStream) throws IOException, PdfOfficeException
presentationInputStream
- input presentation stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficePresentationToPdf(File presentationFile, File pdfFile, OfficePresentationConverterProperties properties) throws IOException
presentationFile
- input presentation file
pdfFile
- output PDF file
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficePresentationToPdf(InputStream presentationInputStream, OutputStream pdfOutputStream, OfficePresentationConverterProperties properties) throws IOException, PdfOfficeException
presentationInputStream
- input presentation stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeSpreadsheetToPdf(File spreadsheetFile, File pdfFile) throws IOException
spreadsheetFile
- input spreadsheet file
pdfFile
- output PDF file
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeSpreadsheetToPdf(InputStream spreadsheetInputStream, OutputStream pdfOutputStream) throws IOException, PdfOfficeException
spreadsheetInputStream
- input spreadsheet stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeSpreadsheetToPdf(File spreadsheetFile, File pdfFile, OfficeSpreadsheetConverterProperties properties) throws IOException
spreadsheetFile
- input spreadsheet file
pdfFile
- output PDF file
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
public static void convertOfficeSpreadsheetToPdf(InputStream spreadsheetInputStream, OutputStream pdfOutputStream, OfficeSpreadsheetConverterProperties properties) throws IOException, PdfOfficeException
spreadsheetInputStream
- input spreadsheet stream. Note, that this method doesn't close the stream.
pdfOutputStream
- output PDF stream. Note, that this method doesn't close the stream.
properties
- properties to configure the conversion operation
IOException
- signals that an I/O exception of some sort has occurred
PdfOfficeException
- runtime exception that gets thrown if something goes wrong in the office files to PDF conversion
Copyright © 1998–2022 iText Group NV. All rights reserved.