I've looked into this. The PDF part of Kunena hasn't changed between K6.4 and K7.0: pdf.php and the getUrl() method in KunenaAttachment work the same way in both versions. So this isn't caused by Kunena 7 itself.
I checked the direct URL of one of your PDFs (/media/kunena/attachments/773/20260709_075242.pdf): it returns 200 OK with Content-Type: application/pdf, so the .htaccess doesn't seem to block the file itself.
A few things I noticed on your site:
- Your attachments aren't protected (the PDF has its normal filename), so that setting isn't the issue.
- The PDF is served correctly by your server (Content-Type: application/pdf, same origin, www redirect is fine).
- The wf-responsive classes and the ?ts= parameter on your <object> come from the Responsify plugin (by the JCE developers), not from Kunena. I tested Responsify on my own test site, though, and the PDF still displayed fine there.
Could you please:
- Restore the original pdf.php (remove your substr change)
- Clear the JCH Optimize cache and do a hard refresh (Ctrl+F5)
- If the PDF still doesn't show, open the browser console (F12) and post any error messages here, together with the rendered <object> line from the page source.
That way we can see what is actually blocking it on your site.