Class PDFExtractInfoOperation
- java.lang.Object
-
- org.nuxeo.ecm.platform.pdf.operations.PDFExtractInfoOperation
-
public class PDFExtractInfoOperation extends Object
Extracts PDF info to specific fields.If there is no blob or if the blob is not a PDF document, we empty the values.
IMPORTANT We don't check if the blob is a PDF or not. If it is not, this will likely lead to PDFBox errors.
For the values to use in the properties parameter, see
PDFInfo.toHashMap()
.- Since:
- 8.10
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
protected Properties
properties
protected boolean
save
protected CoreSession
session
protected String
xpath
-
Constructor Summary
Constructors Constructor Description PDFExtractInfoOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
run(DocumentModel inDoc)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
xpath
protected String xpath
-
properties
protected Properties properties
-
save
protected boolean save
-
-
Method Detail
-
run
public DocumentModel run(DocumentModel inDoc) throws IOException
- Throws:
IOException
-
-