Package 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..
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssemblerResult
invoke(Document ddx, java.util.Map<java.lang.String,java.lang.Object> inputs, AssemblerOptionSpec environment)
Executes the DDX contained inddx
on the given input documents (inputs
), returning anAssemblerResult
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, java.util.Map<java.lang.String,java.lang.Object> inputs, AssemblerOptionSpec environment) throws OperationException
Executes the DDX contained inddx
on the given input documents (inputs
), returning anAssemblerResult
object containing the result documents. All input and outputDocument
objects are owned by the caller and should be disposed of properly.- Parameters:
ddx
- The DDX, specified as aDocument
object.inputs
- Ajava.util.Map
of input documents. The keys are logical names to be referenced in the DDX. A name may reference:environment
- AnAssemblerOptionSpec
containing log and failure mode key value pairs.- Returns:
- An
AssemblerResult
containing the result documents. - Throws:
OperationException
- Any throwable exception that occurs is converted to anOperationException
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 convertedoptions
- 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 convertedoptions
- The conversion options.- Returns:
- a PDFAValidationResult containing the validation result and the job log
- Throws:
ValidationException
- if the conversion failed
-
-