I have a strange behaviour of the portal_transform in a migrated site coming from Plone 5.1. After debugging the tool i found out that 'pdf_to_html' and 'pdf_to_text' transforms are missing in the mimetypes map, but they are available in list of transforms in the tools On a fresh Plone site with the same packages installed, indexing pdfs is working fine. Also tried to replace the portal_transforms and mimetypes_registry tools with the ones of a fresh site, no change. One more info: the site was using ftw.tika before to index files, but i don't think this is the problem here. Any clue how to solve this problem? Thank you!
Where these transform in the Plone 5.1 site before? If not, you can do this:
Jepp, i have added that code in the setuphandler.py script of the main package. both transforms are in the list, but obiously ignored.