com.adobe.fd.assembler.service
Interface AssemblerService


public interface AssemblerService

AssemblerService provides users capabilities to perform various operations on PDF like assembling-disasessmbling, importing- exporting bookmarks, conversion-validation against PDFA standards, etc..

Author:
sharoon

Method Summary
 AssemblerResult invoke(Document ddx, Map<String,Object> inputs, AssemblerOptionSpec environment)
          Executes the DDX contained in ddx on the given input documents (inputs), returning an AssemblerResult object containing the result documents.
 PDFAValidationResult isPDFA(Document inDoc, PDFAValidationOptionSpec options)
          Validate a given document is PDF/A according to the options specified.
 PDFAConversionResult toPDFA(Document inDoc, PDFAConversionOptionSpec options)
          Convert a given document to PDF/A using the options specified.
 

Method Detail

invoke

AssemblerResult invoke(Document ddx,
                       Map<String,Object> inputs,
                       AssemblerOptionSpec environment)
                       throws OperationException
Executes the DDX contained in ddx on the given input documents (inputs), returning an AssemblerResult object containing the result documents. All input and output Document objects are owned by the caller and should be disposed of properly.

Parameters:
ddx - The DDX, specified as a Document object.
inputs - A java.util.Map of input documents. The keys are logical names to be referenced in the DDX. A name may reference:
  • One Document object
  • A list of Document objects, in the form of a serializable object implementing the java.util.List interface
environment - An AssemblerOptionSpec containing log and failure mode key value pairs.
Returns:
An ccom.adobe.fd.assembler.client.AssemblerResult containing the result documents.
Throws:
OperationException - Any throwable exception that occurs is converted to an OperationException or a subclass.

toPDFA

PDFAConversionResult toPDFA(Document inDoc,
                            PDFAConversionOptionSpec options)
                            throws ConversionException
Convert a given document to PDF/A using the options specified.

Parameters:
inDoc - The PDF that should be converted
options - The conversion options.
Returns:
a PDFAConversionResult containing the converted document and the job log
Throws:
ConversionException - if the conversion failed

isPDFA

PDFAValidationResult isPDFA(Document inDoc,
                            PDFAValidationOptionSpec options)
                            throws ValidationException
Validate a given document is PDF/A according to the options specified.

Parameters:
inDoc - The PDF that should be converted
options - The conversion options.
Returns:
a PDFAValidationResult containing the validation result and the job log
Throws:
ValidationException - if the conversion failed


Copyright © 1982–2015 Adobe Systems Inc.. All rights reserved.