Since the React component isn't working, here's a direct fix that bypasses the broken frontend code:
const script = document.createElement('script'); script.src = '/fix-pdf-download.js'; document.head.appendChild(script);
If the fix above doesn't work, you can use our working test page:
The root issue is that the React component's click handler isn't executing. This could be due to:
The PDF function itself works perfectly (confirmed by direct tests).