There may be cases where you want to specify which documents you want to convert. For example, you may want to create a record for a specific document but exclude that record from the document conversion process because the document size is too large.
You cannot use document conversion filters specified in
DocumentConversionFilters.xml
because it does not
apply to data source extensions.
There are two approaches for specifing which documents to convert:
Add logic in the extension that identifies a property in the record to examine, tests the property during acquisition, and returns null from either
getBinaryContentFile()
orgetBinaryContentInputStream()
for those records you want to exclude from the document conversion process.Add logic in the extension that examines a configuration file, determines which property to examine, returns null from either
getBinaryContentFile()
orgetBinaryContentInputStream()
for those records you want to exclude from the document conversion process.