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()
Gets the number of remaining pdf document according to currently loaded license, or null in case there is no limit
|
static Long |
getRemainingProducePagesEvents()
Gets the number of remaining pages in pdf pages according to currently loaded license, or null in case there is no limit
|
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
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.
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.
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
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
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
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
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
IOException
- when error during reading or writing occurred
PackageHelper.unpackTemplatePackage(File, File)
public static Long getRemainingProduceEvents()
null
in case there is no limit
null
in case there is no limit on them
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.