Modifier and Type | Method and Description |
---|---|
ExtractPDFOperation |
addCharInfo(Boolean charInfo)
Boolean to get bounding boxes for characters present in text blocks(paragraphs, list, headings).
|
ExtractPDFOperation |
addElementsToExtract(List<PDFElementType> elementsToExtract)
Add pdf element types for extracting structured information.
|
ExtractPDFOperation |
addElementsToExtractRenditions(List<PDFElementType> elementsToExtractRenditions)
Add pdf element types for extracting renditions.
|
ExtractPDFOperation |
addElementToExtract(PDFElementType elementToExtract)
Adds a pdf element type for extracting structured information.
|
ExtractPDFOperation |
addElementToExtractRenditions(PDFElementType elementToExtractRenditions)
Adds a pdf element type for extracting rendition.
|
ExtractPDFOperation |
addTableStructureFormat(TableStructureType tableStructure)
Specifies the format for extracting table data information.
|
static ExtractPDFOperation |
createNew()
Constructs a
ExtractPDFOperation instance. |
FileRef |
execute(ExecutionContext context)
Executes this operation synchronously using the supplied context and returns a new FileRef instance for the resulting Zip file.
|
ExtractPDFOperation |
setInputFile(FileRef sourceFileRef)
Sets an input file.
|
public static ExtractPDFOperation createNew()
ExtractPDFOperation
instance.ExtractPDFOperation
instancepublic ExtractPDFOperation setInputFile(FileRef sourceFileRef)
sourceFileRef
- an input fileExtractPDFOperation
instancepublic ExtractPDFOperation addElementToExtract(PDFElementType elementToExtract)
elementToExtract
- list of pdf elements to be extractedExtractPDFOperation
instancepublic ExtractPDFOperation addTableStructureFormat(TableStructureType tableStructure)
tableStructure
- type of format to output table dataExtractPDFOperation
instancepublic ExtractPDFOperation addCharInfo(Boolean charInfo)
charInfo
- booleanExtractPDFOperation
instancepublic ExtractPDFOperation addElementToExtractRenditions(PDFElementType elementToExtractRenditions)
elementToExtractRenditions
- list of pdf elements to be extractedExtractPDFOperation
instancepublic ExtractPDFOperation addElementsToExtract(List<PDFElementType> elementsToExtract)
elementsToExtract
- list of pdf elements to be extractedExtractPDFOperation
instancepublic ExtractPDFOperation addElementsToExtractRenditions(List<PDFElementType> elementsToExtractRenditions)
elementsToExtractRenditions
- list of pdf elements for extracting renditionsExtractPDFOperation
instancepublic FileRef execute(ExecutionContext context) throws ServiceApiException, IOException, ServiceUsageException
The resulting file may be stored in the system temporary directory (per java.io.tmpdir System property).
See FileRef
for how temporary resources are cleaned up.
execute
in interface Operation
context
- the context in which to execute the operationServiceApiException
- if an API call results in an error responseIOException
- if there is an error in reading either the input source or the resulting Zip fileServiceUsageException
- if service usage limits have been reached or credentials quota has been exhausted.Copyright © 2021 Adobe. All rights reserved.