About PDF tracking

I have a question about getting access logs for PDF.

I saw an article on Matomo that says it can track PDF downloads.
Adobe Acrobat has the ability to use JavaScript in PDF, can I use Matomo tags with this feature to get tracking logs?

Best regards.

Matomo has the ability to track clicks on links to pdf documents on websites, i.e. “link tracking”.

When I quickly read up in the Javascript allowed in Adobe pdf files, it didn’t seem like embedding a Matomo script into a pdf would be possible.

There are potentially other ways of tracking pdf opens, none of which however sound easy according to this other forum thread.