@PermitAll public class PdfFunctionsImpl extends Object implements PdfFunctions
Constructor and Description |
---|
PdfFunctionsImpl() |
Modifier and Type | Method and Description |
---|---|
RecordHolder |
fillPdfForm(ExecutionContext context,
RecordHolder pdfInput,
String fileName,
MapHolder values)
Fills a given PDF form.
|
BinaryHolder |
fillPdfTemplate(ExecutionContext context,
BinaryHolder pdfTemplate,
BinaryHolder fdfDocument)
Creates a new PDF document from a template.
|
BinaryHolder |
fillPdfTemplate(ExecutionContext context,
BinaryHolder pdfTemplate,
MapHolder values)
Creates a new PDF document from a template.
|
BinaryHolder |
fillXfaPdfTemplate(ExecutionContext context,
BinaryHolder xfaTemplate,
RecordHolder data)
Creates a new PDF document from the XFA template.
|
BinaryHolder |
fillXfaPdfTemplate(ExecutionContext context,
BinaryHolder xfaTemplate,
String xml)
Creates a new PDF document from the XFA template.
|
public RecordHolder fillPdfForm(ExecutionContext context, RecordHolder pdfInput, String fileName, MapHolder values) throws ErrorException
PdfFunctions
fillPdfForm
in interface PdfFunctions
context
- the LSPS execution contextpdfInput
- PDF form as a BinaryHandle recordfileName
- a file name of the created output BinaryHandlevalues
- a map with PDF form field names as keysErrorException
public BinaryHolder fillPdfTemplate(ExecutionContext context, BinaryHolder pdfTemplate, MapHolder values) throws ErrorException
PdfFunctions
values
map. The keys of the map represent the field
names.fillPdfTemplate
in interface PdfFunctions
context
- the execution contextpdfTemplate
- a PDF templatevalues
- the values for the form fieldsErrorException
- If error occurs during the creation of the PDF documentpublic BinaryHolder fillPdfTemplate(ExecutionContext context, BinaryHolder pdfTemplate, BinaryHolder fdfDocument) throws ErrorException
PdfFunctions
fillPdfTemplate
in interface PdfFunctions
context
- the execution contextpdfTemplate
- a PDF templatefdfDocument
- the values for the form fieldsErrorException
- If error occurs during the creation of the PDF documentpublic BinaryHolder fillXfaPdfTemplate(ExecutionContext context, BinaryHolder xfaTemplate, String xml) throws ErrorException
PdfFunctions
xml
. The xml
must conform to
the XSD specified by the template.fillXfaPdfTemplate
in interface PdfFunctions
context
- the execution contextxfaTemplate
- the PDF template with XFA controlsxml
- the data for the templateErrorException
public BinaryHolder fillXfaPdfTemplate(ExecutionContext context, BinaryHolder xfaTemplate, RecordHolder data) throws ErrorException
PdfFunctions
data
record. The type of populated record must specify
the XML mapping that conforms to the XML schema required by the template.fillXfaPdfTemplate
in interface PdfFunctions
context
- the execution contextxfaTemplate
- the PDF template with XFA controlsdata
- the data for the templateErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.