A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi jmhelo,
Thanks for posting in the community. We are happy to help you.
I've tried to modify the JSON code, but I can't get the JSON code to distinguish between pdf files and non-pdf files. I am afraid that I have no idea how to meet your needs. Since your query is about the JSON code and we have a specific channel Microsoft Q&A Community coping with such development and customization questions, I suggest you post a new thread (assign the tabs SharePoint Development and SharePoint) there for expert help. See if the experts there have any ideas about what you need.
Also, we welcome community members to share ideas about the situation if one has related experiences.
Appreciate your understanding and patience.
Sincerely,
George | Microsoft Community Moderator