public final class PdfProducer extends Object
Modifier and Type | Method and Description |
---|---|
static PdfProductionResult |
convertTemplateFromPackage(File templatePackage, String templateName, OutputStream outputPdfStream, JsonData data)
Produces a PDF file from an output template from a template package with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(File templatePackage, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties)
Produces a PDF file from an output template from a template package with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(File templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData)
Produces a PDF file from an output template from a template package with data from template package
|
static PdfProductionResult |
convertTemplateFromPackage(File templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData, PdfProducerProperties properties)
Produces a PDF file from an output template from a template package with data from template package
|
static PdfProductionResult |
convertTemplateFromPackage(InputStream templatePackage, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties)
Produces a PDF file from an output template from a template package with JSON data
|
static PdfProductionResult |
convertTemplateFromPackage(InputStream templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData, PdfProducerProperties properties)
Produces a PDF file from an output template from a template package with data from template package
|
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 templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData) throws IOException
templatePackage
- the template package
templateName
- name of the output template used for the PDF production
outputPdfStream
- output stream where the resultant PDF would be written
packageProvidedData
- 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 templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData, PdfProducerProperties properties) throws IOException
templatePackage
- the template package
templateName
- name of the output template used for the PDF production
outputPdfStream
- output stream where the resultant PDF would be written
packageProvidedData
- 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 templatePackage, String templateName, OutputStream outputPdfStream, PackageProvidedData packageProvidedData, PdfProducerProperties properties) throws IOException
templatePackage
- the template package stream
templateName
- name of the output template used for the PDF production
outputPdfStream
- output stream where the resultant PDF would be written
packageProvidedData
- 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 templatePackage, String templateName, OutputStream outputPdfStream, JsonData data) throws IOException
templatePackage
- the template package
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 templatePackage, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties) throws IOException
templatePackage
- the template package
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 templatePackage, String templateName, OutputStream outputPdfStream, JsonData data, PdfProducerProperties properties) throws IOException
templatePackage
- the template package 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 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 © 2019. All rights reserved.