|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.output.client.OutputClient
public class OutputClient
Allows the creation of a Java object that invokes operations that belong to the Output service. Using this object, you can create document output streams 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 stream, such as one of the following formats:
PrintFormat
enumeration value.
You can send the output stream to one of the following destinations: a network printer, a LPR printer, or to a network file. For information, see the Creating Document Output Streams section in Programming with Adobe Experience Manager forms.
Constructor Summary | |
---|---|
OutputClient(ServiceClientFactory serviceClientFactory)
A constructor that creates an OutputClient object. |
Method Summary | |
---|---|
OutputResult |
generatePDFOutput(TransformationFormat transformationFormat,
java.lang.String form,
java.lang.String contentRoot,
PDFOutputOptionsSpec pdfOutputOptionsSpec,
RenderOptionsSpec renderOptionsSpec,
Document inDataDoc)
Generates a PDF or a PDF/A output stream given a form design and data to merge with the form design. |
OutputResult |
generatePDFOutput2(TransformationFormat transformationFormat,
java.lang.String contentRoot,
Document inFormDoc,
PDFOutputOptionsSpec pdfOutputOptionsSpec,
RenderOptionsSpec renderOptionsSpec,
Document inDataDoc)
Generates a PDF or a PDF/A output stream given a form design and data to merge with the form design. |
OutputResult |
generatePrintedOutput(PrintFormat printFormat,
java.lang.String form,
java.lang.String contentRoot,
java.lang.String XDCURI,
PrintedOutputOptionsSpec printedOutputOptionsSpec,
Document inDataDoc)
Generates a PCL, PostScript, or ZPL output stream given a form design and data to merge with the form design. |
OutputResult |
generatePrintedOutput2(PrintFormat printFormat,
java.lang.String contentRoot,
Document inFormDoc,
java.lang.String XDCURI,
PrintedOutputOptionsSpec printedOutputOptionsSpec,
Document inDataDoc)
Generates a PCL, PostScript, or ZPL output stream given a form design and data to merge with the form design. |
Document |
getResult(java.lang.String requestId)
Deprecated. |
boolean |
isSynchronous()
For internal use only. |
void |
lprPrint(Document inDataDoc,
java.lang.String lpdURI,
java.lang.String printerQueueName)
Deprecated. Use sendToPrinter . |
void |
print(Document inDataDoc,
java.lang.String printUri)
Deprecated. Use sendToPrinter . |
void |
resetCache()
Exposes the Reset Cache functionality for an Output administrator as an API operation. |
java.lang.Boolean |
sendToPrinter(Document inDoc,
PrinterProtocol printerProtocol,
java.lang.String printServer,
java.lang.String printerName)
Prints the document at the given printer on the specified print server. |
void |
setSynchronous(boolean synchronous)
Sets the Output service to be invoked synchronously. |
Document |
transformPDF(Document inPdfDoc,
TransformationFormat transformationFormat,
PDFARevisionNumber pdfaRevisionNumber,
java.lang.String pdfaAmendment,
PDFAConformance pdfaConformance)
Converts a document output stream to either non-interactive PDF or PDF/A format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputClient(ServiceClientFactory serviceClientFactory)
OutputClient
object.
serviceClientFactory
- A ServiceClientFactory
object that contains
connection properties.
For information about setting connection properties, see the Invoking Adobe Experience Manager forms Services using APIs
section in Programming with Adobe Experience Manager forms.Method Detail |
---|
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
synchronous
- A Boolean value that specifies whether the Output service is invoked synchronously.public OutputResult generatePDFOutput(TransformationFormat transformationFormat, java.lang.String form, java.lang.String contentRoot, PDFOutputOptionsSpec pdfOutputOptionsSpec, RenderOptionsSpec renderOptionsSpec, Document inDataDoc) throws OutputException, com.adobe.idp.dsc.DSCException
transformationFormat
- A TransformationFormat
enumeration value that specifies whether to
create a PDF or a PDF/A output stream.form
- The name of the form design on which the PDF or a PDF/A output stream is based on.
This parameter references a form design that is saved as an XDP file and
created in Adobe Experience Manager forms Designer. It can also be saved as a PDF file.
For information, see the Adobe Experience Manager forms Designer Help.contentRoot
- A string value that defines the path to the form design and related collateral files.pdfOutputOptionsSpec
- A PDFOutputOptionsSpec
object that contains run-time values that are used by the Output service.
For example, to write a PDF or PDF/A output stream to the local file system as a PDF file,
you must set the file URI by using the
setFileURI()
method.renderOptionsSpec
- A RenderOptionsSpec
object that contains rendering options.inDataDoc
- A Document
object that represents XML data used to prepopulate a form design
(prepopulating a form means merging data with the form design).
OutputResult
object that contains the results of the operation.
If this
operation was successful, then the actions defined using the PDFOutputOptionsSpec
parameter are performed.
OutputException
- If an error occurs during this operation. For example, if the Output service cannot locate the specified form design.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.public OutputResult generatePDFOutput2(TransformationFormat transformationFormat, java.lang.String contentRoot, Document inFormDoc, PDFOutputOptionsSpec pdfOutputOptionsSpec, RenderOptionsSpec renderOptionsSpec, Document inDataDoc) throws OutputException, com.adobe.idp.dsc.DSCException
com.adobe.idp.Document
object.
To see this method used in a code example, see the Passing documents to the Output Service using the Java API quick start in Programming with Adobe Experience Manager forms.
transformationFormat
- A TransformationFormat
enumeration value that specifies whether to
create a PDF or a PDF/A output stream.contentRoot
- A string value that defines the path to the form design and related collateral files.inFormDoc
- A com.adobe.idp.Document
object that represents
the form design on which the PDF or a PDF/A output stream is based on.
This parameter is a form that is saved as an XDP file and
created in Adobe Experience Manager forms Designer. It can also be saved as a PDF file.pdfOutputOptionsSpec
- A PDFOutputOptionsSpec
object that contains run-time values that are used by the Output service.
For example, to write a PDF or PDF/A output stream to the local file system as a PDF file,
you must set the file URI by using the
setFileURI()
method.renderOptionsSpec
- A RenderOptionsSpec
object that contains rendering options.inDataDoc
- A com.adobe.idp.Document
object that represents XML data used to prepopulate a form design
(prepopulating a form means merging data with the form design).
OutputResult
object that contains the results of the operation.
If this
operation was successful, then the actions defined using the PDFOutputOptionsSpec
parameter are performed.
OutputException
- If an error occurs during this operation. For example, if the Output service cannot locate the specified form design.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.public OutputResult generatePrintedOutput(PrintFormat printFormat, java.lang.String form, java.lang.String contentRoot, java.lang.String XDCURI, PrintedOutputOptionsSpec printedOutputOptionsSpec, Document inDataDoc) throws OutputException, com.adobe.idp.dsc.DSCException
sendToPrinter
method.
To see this method used in a code example, see the Printing to a file using the Java API
quick start in Programming with Adobe Experience Manager forms.
printFormat
- A PrintFormat
enumeration value that specifies whether to
create a PCL, PostScript, or ZPL output stream.form
- The name of the form design on which the output stream is based on.
This parameter references a form design that is saved as an XDP file and
created in Adobe Experience Manager forms Designer. For information, see Adobe Experience Manager forms Designer Help.contentRoot
- A string value that defines the path to related collateral files.XDCURI
- A string value that defines the path to the XDC file.printedOutputOptionsSpec
- A PrintedOutputOptionsSpec
object that contains run-time values that
are used by the Output service.inDataDoc
- A Document
object that represents XML data used to prepopulate a form design
(prepopulating a form means merging data with the form design).
OutputResult
object that contains the results of the operation.
OutputException
- If an error occurs during this operation. For example, if the Output service cannot locate the specified form design.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.public OutputResult generatePrintedOutput2(PrintFormat printFormat, java.lang.String contentRoot, Document inFormDoc, java.lang.String XDCURI, PrintedOutputOptionsSpec printedOutputOptionsSpec, Document inDataDoc) throws OutputException, com.adobe.idp.dsc.DSCException
sendToPrinter
method.
When invoking this method, a form design is passed to the Output service within a
com.adobe.idp.Document
object.
printFormat
- A PrintFormat
enumeration value that specifies whether to
create a PCL, PostScript, or ZPL output stream.contentRoot
- A string value that defines the path to related collateral files.inFormDoc
- A com.adobe.idp.Document
object that
represents the form design on which the output stream is based on.
This parameter is a form that is saved as an XDP file and
created in Adobe Experience Manager forms Designer. It can also be saved as a PDF file.
For information, see the Adobe Experience Manager forms Designer Help.XDCURI
- A string value that defines the path to the XDC file.printedOutputOptionsSpec
- A PrintedOutputOptionsSpec
object that contains run-time values that
are used by the Output service.inDataDoc
- A Document
object that represents XML data used to prepopulate a form design
(prepopulating a form means merging data with the form design).
OutputResult
object that contains the results of the operation.
OutputException
- If an error occurs during this operation. For example, if the Output service cannot locate the specified form design.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.@Deprecated public Document getResult(java.lang.String requestId) throws OutputException, com.adobe.idp.dsc.DSCException
requestId
- The request identifier value.
OutputException
com.adobe.idp.dsc.DSCException
@Deprecated public void print(Document inDataDoc, java.lang.String printUri) throws OutputException, com.adobe.idp.dsc.DSCException
sendToPrinter
.
inDataDoc
parameter to the printer. If you want to send a PCL, PostScript,
or ZPL output stream to a network printer, then use the
generatePrintedOutput()
method.
inDataDoc
- A Document
object that contains a document
output stream to send to the specified printer.printUri
- A URI location of the printer to which the output stream is sent.
OutputException
- If an error occurs during this operation. For example, if you specify an invalid printer URI location.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.@Deprecated public void lprPrint(Document inDataDoc, java.lang.String lpdURI, java.lang.String printerQueueName) throws OutputException, com.adobe.idp.dsc.DSCException
sendToPrinter
.
inDataDoc
- A Document
object to be printed at the specified LPD URI.lpdURI
- A string value that represents the LPD URI.printerQueueName
- The name of the printer queue.
OutputException
- If an error occurs during this operation. For example, if you specify an invalid LPD URI value.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs.public java.lang.Boolean sendToPrinter(Document inDoc, PrinterProtocol printerProtocol, java.lang.String printServer, java.lang.String printerName) throws OutputException, com.adobe.idp.dsc.DSCException
To see this method used in a code example, see the Sending Print Streams to Printers using the Java API quick start in Programming with Adobe Experience Manager forms.
inDoc
- A Document
object that contains data to send to the printer.printerProtocol
- A PrinterProtocol
enumeration value that specifies the printer protocol to use.printServer
- A string value that represents the print server.printerName
- The name of the printer.
OutputException
- If an error occurs during this printing operation.
com.adobe.idp.dsc.DSCException
- If a run-time error occurs, such as the Output service not being able to locate the specified network printer.public Document transformPDF(Document inPdfDoc, TransformationFormat transformationFormat, PDFARevisionNumber pdfaRevisionNumber, java.lang.String pdfaAmendment, PDFAConformance pdfaConformance) throws OutputException, com.adobe.idp.dsc.DSCException
PDF/A
value specifies a W3C Archive Standard
PDF/A document that can be used for archiving purposes.
This value embeds all of the fonts as well as turns off compression.
As a result, a PDF/A document is generally
much larger than a standard PDF document.
When you select the PDF/A
value, you must provide values for the
pdfaRevisionNumber
, pdfaAmendment
, and pdfaConformance
parameters.
Otherwise, you can specify null for these parameters.
To see this method used in a code example, see the Transforming a PDF document using the Java API quick start in Programming with Adobe Experience Manager forms.
inPdfDoc
- A Document
object that contains an output stream to convert.transformationFormat
- Specifies the format to which the output stream is converted.
Valid values are PDF
or PDF/A
.pdfaRevisionNumber
- An integer value that specifies the revision number of the PDF/A document.
The default value is Revision_1.pdfaAmendment
- A string value that represents the amendment number and year, separated by a colon.pdfaConformance
- A string value that specifies the PDF/A conformance
level as specified in the PDF/A-1 ISO specification. The conformance level refers to
how a PDF document adheres to requirements that specify how
long-term electronic documents are preserved.
Valid values are A
or B
.
The default value is A
.
For information about level A and B conformance, see
the PDF/A-1 ISO specification that is titled ISO 19005-1 Document management.
Document
object that contains the results of this operation.
OutputException
- If an error occurred during this operation.
com.adobe.idp.dsc.DSCException
public void resetCache() throws OutputException, com.adobe.idp.dsc.DSCException
PERM_OUTPUT_ADMIN
permission.
OutputException
- Contains the root exception.
com.adobe.idp.dsc.DSCException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |