Package com.adobe.fd.output.api
Interface OutputService
-
@ProviderType public interface OutputServiceAllows the creation of a Java object that invokes operations that belong to the Output service. Using this object, you can create documents using a form design and data to merge with the form design. For example, you can reference an existing form design and generate a print documents, such as one of the following formats:- A PDF document.
- An Adobe PostScript Document
- A Printer Control Language (PCL) document.
- A Zebra Programming Language (ZPL) document.
RenderTypeenumeration value.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPAGE_COUNTKey to be used for retrieving page count from rendered document object using Document#getAttribute method
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentgeneratePDFOutput(Document inDoc, Document data, PDFOutputOptions pdfOutputOptions)Generates a PDF Document given a template and data to merge The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute methodDocumentgeneratePDFOutput(java.lang.String urlOrFileName, Document data, PDFOutputOptions pdfOutputOptions)Generates a PDF Document given a template and data to merge The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute methodBatchResultgeneratePDFOutputBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document> data, PDFOutputOptions pdfOutputOptions, BatchOptions batchOptions)Generates a set of PDF Document given a set of template and data to mergeBatchResultgeneratePDFOutputMultiDataBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document[]> data, PDFOutputOptions pdfOutputOptions, BatchOptions batchOptions)Generates a set of PDF Document given a set of template and data to mergeDocumentgeneratePrintedOutput(Document inDoc, Document data, PrintedOutputOptions printedOutputOptions)create a PS/PCL/ZPL document from input xdp or pdf document The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute methodDocumentgeneratePrintedOutput(java.lang.String urlOrFileName, Document data, PrintedOutputOptions printedOutputOptions)create a PS/PCL/ZPL document from input xdp or pdf document The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute methodBatchResultgeneratePrintedOutputBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document> data, PrintedOutputOptions printedOutputOptions, BatchOptions batchOptions)create PS/PCL/ZPL from a collection of templates and dataBatchResultgeneratePrintedOutputMultiDataBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document[]> data, PrintedOutputOptions printedOutputOptions, BatchOptions batchOptions)create PS/PCL/ZPL from a collection of templates and data
-
-
-
Field Detail
-
PAGE_COUNT
static final java.lang.String PAGE_COUNT
Key to be used for retrieving page count from rendered document object using Document#getAttribute method- See Also:
- Constant Field Values
-
-
Method Detail
-
generatePDFOutput
Document generatePDFOutput(Document inDoc, Document data, PDFOutputOptions pdfOutputOptions) throws OutputServiceException
Generates a PDF Document given a template and data to merge The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute method- Parameters:
inDoc- template on which generated pdf document is based. it is created in Adobe LiveCycle Designer it can be and XDP document or a PDF documentdata- data xml to be merged with the templatepdfOutputOptions- options to configure the operation- Returns:
Documentobject containing PDF- Throws:
OutputServiceException
-
generatePDFOutput
Document generatePDFOutput(java.lang.String urlOrFileName, Document data, PDFOutputOptions pdfOutputOptions) throws OutputServiceException
Generates a PDF Document given a template and data to merge The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute method- Parameters:
urlOrFileName- name or url of template on which generated pdf document is based. it is created in Adobe LiveCycle Designer it can be and XDP document or a PDF documentdata- data xml to be merged with the templatepdfOutputOptions- options to configure the operation- Returns:
Documentobject containing PDF- Throws:
OutputServiceException
-
generatePDFOutputBatch
BatchResult generatePDFOutputBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document> data, PDFOutputOptions pdfOutputOptions, BatchOptions batchOptions) throws OutputServiceException
Generates a set of PDF Document given a set of template and data to merge- Parameters:
templates- set of names templates, identified by a keydata- set of data documents, identified by keypdfOutputOptions- options to configure pdf generationbatchOptions- options to configure batch- Returns:
BatchResultinstance containg result of the operation- Throws:
OutputServiceException
-
generatePDFOutputMultiDataBatch
BatchResult generatePDFOutputMultiDataBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document[]> data, PDFOutputOptions pdfOutputOptions, BatchOptions batchOptions) throws OutputServiceException
Generates a set of PDF Document given a set of template and data to merge- Parameters:
templates- set of names templates, identified by a keydata- set of multiple data documents, identified by keypdfOutputOptions- options to configure pdf generationbatchOptions- options to configure batch- Returns:
BatchResultinstance containg result of the operation- Throws:
OutputServiceException
-
generatePrintedOutput
Document generatePrintedOutput(Document inDoc, Document data, PrintedOutputOptions printedOutputOptions) throws OutputServiceException
create a PS/PCL/ZPL document from input xdp or pdf document The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute method- Parameters:
inDoc-data-printedOutputOptions-- Returns:
Documentobject containing generated print document- Throws:
OutputServiceException
-
generatePrintedOutput
Document generatePrintedOutput(java.lang.String urlOrFileName, Document data, PrintedOutputOptions printedOutputOptions) throws OutputServiceException
create a PS/PCL/ZPL document from input xdp or pdf document The returned document object also contains an attribute FormsService#PAGE_COUNT which contains number of pages rendered which can retrieved using Document#getAttribute method- Parameters:
urlOrFileName-data-printedOutputOptions-- Returns:
Documentobject containing generated print document- Throws:
OutputServiceException
-
generatePrintedOutputBatch
BatchResult generatePrintedOutputBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document> data, PrintedOutputOptions printedOutputOptions, BatchOptions batchOptions) throws OutputServiceException
create PS/PCL/ZPL from a collection of templates and data- Parameters:
templates-data-printedOutputOptions-- Returns:
BatchResultinstance containing result of batch operation- Throws:
OutputServiceException
-
generatePrintedOutputMultiDataBatch
BatchResult generatePrintedOutputMultiDataBatch(java.util.Map<java.lang.String,java.lang.String> templates, java.util.Map<java.lang.String,Document[]> data, PrintedOutputOptions printedOutputOptions, BatchOptions batchOptions) throws OutputServiceException
create PS/PCL/ZPL from a collection of templates and data- Parameters:
templates-data-printedOutputOptions-- Returns:
BatchResultinstance containing result of batch operation- Throws:
OutputServiceException
-
-