World is now on Opti ID! Learn more

Custom PDF type with PdfPreview add-on

Vote:
 

Has anyone successfully used the PdfPreview add-on while preserving their custom PDF model type? Even though I followed the documentation in ensuring I implement the IPdfFile interface on my custom model as well as creating a Custom PdfContentMediaResolver to override the GetFirstMatching(string extension). The file upload process still uses the PdfFile model from the PdfPreview add-on instead of my custom type. If this is a bug, is there a safe/creative way to tap into the OnSavedContent event to maybe look for those PdfFile instances and create another version using my custom type? I would appreciate any help or guidance if someone has done this successfully.

#339548
Edited, Jun 27, 2025 17:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.