Package com.adobe.fd.assembler.service
Interface AssemblerService
-
public interface AssemblerServiceAssemblerService 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 AssemblerResultinvoke(Document ddx, java.util.Map<java.lang.String,java.lang.Object> inputs, AssemblerOptionSpec environment)Executes the DDX contained inddxon the given input documents (inputs), returning anAssemblerResultobject containing the result documents.PDFAValidationResultisPDFA(Document inDoc, PDFAValidationOptionSpec options)Validate a given document is PDF/A according to the options specified.PDFAConversionResulttoPDFA(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 inddxon the given input documents (inputs), returning anAssemblerResultobject containing the result documents. All input and outputDocumentobjects are owned by the caller and should be disposed of properly.- Parameters:
ddx- The DDX, specified as aDocumentobject.inputs- Ajava.util.Mapof input documents. The keys are logical names to be referenced in the DDX. A name may reference:environment- AnAssemblerOptionSpeccontaining log and failure mode key value pairs.- Returns:
- An
AssemblerResultcontaining the result documents. - Throws:
OperationException- Any throwable exception that occurs is converted to anOperationExceptionor 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
-
-