public final class PdfProducer extends Object
| Modifier and Type | Method and Description |
|---|---|
static PdfProductionResult |
convertTemplateFromExplodedProject(File explodedProjectDirectory, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties)
Produces a PDF file from an output template from an unpacked template project with JSON data
|
static PdfProductionResult |
convertTemplateFromExplodedProject(File explodedProjectDirectory, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties)
Produces a PDF file from an output template from an unpacked template project with data from template project
|
static PdfProductionResult |
convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, JsonData data)
Produces a PDF file from an output template from a template project with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties)
Produces a PDF file from an output template from a template project with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData)
Produces a PDF file from an output template from a template project with data from template project
|
static PdfProductionResult |
convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties)
Produces a PDF file from an output template from a template project with data from template project
|
static PdfProductionResult |
convertTemplateFromPackage(InputStream templateProject, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties)
Produces a PDF file from an output template from a template project with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(InputStream templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties)
Produces a PDF file from an output template from a template project with data from template project
|
static Long |
getRemainingProduceEvents()
Deprecated.
Use com.itextpdf.licensing.base.LicenseKey to obtain remaining events
|
static Long |
getRemainingProducePagesEvents()
Deprecated.
|
public static PdfProductionResult convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData) throws IOException
templateProject - the template project
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
projectProvidedData - data from the package that would be merged with the output template
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties) throws IOException
templateProject - the template project
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
projectProvidedData - data from the package that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version.
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromPackage(InputStream templateProject, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties) throws IOException
templateProject - the template project stream
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
projectProvidedData - data from the package that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version.
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, JsonData data) throws IOException
templateProject - the template project
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
data - JSON data that would be merged with the output template
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromPackage(File templateProject, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties) throws IOException
templateProject - the template project
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
data - JSON data that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromPackage(InputStream templateProject, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties) throws IOException
templateProject - the template project stream
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
data - JSON data that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
public static PdfProductionResult convertTemplateFromExplodedProject(File explodedProjectDirectory, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties) throws IOException
explodedProjectDirectory - the unpacked template project directory
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
data - JSON data that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
PackageHelper.unpackTemplatePackage(File, File)
public static PdfProductionResult convertTemplateFromExplodedProject(File explodedProjectDirectory, String templateName, OutputStream outputPdfStream, PackageProvidedData projectProvidedData, PdfProducerProperties properties) throws IOException
explodedProjectDirectory - the unpacked template project directory
templateName - name of the output template used for the PDF production
outputPdfStream - output stream where the resultant PDF would be written
projectProvidedData - data from the package that would be merged with the output template
properties - the PdfProducerProperties for conversion to PDF e.g PDF version
PdfProductionResult – structure class containing information about PDF production
IOException - when error during reading or writing occurred
PackageHelper.unpackTemplatePackage(File, File)
@Deprecated public static Long getRemainingProduceEvents()
null in case there is no limit
null in case there is no limit on them
@Deprecated public static Long getRemainingProducePagesEvents()
null in case there is no limit
null in case there is no limit on them
Copyright © 2021. All rights reserved.