'How to set pdf to expire/ hide content/ delete itself (any of this) for free (without DRM) after an hour from opening it with password?

I'm making a game with pdf files that you have to open with passwords. Each pdf has hidden password for the next one and all should only work for an hour after opening, then each of them should stop showing its content (expire, hide its content or delete itself, any of this would be great). It doesn't have to be safe as it's just a game but I need an easy way of doing it.

I've tried searching for it in libreoffice options and pdftk free but I can't find it.

I've seen answers about doing it by adding javascript to pdf 1 but it requires me to use Acrobat Pro. I do not have it and I'm using ubuntu.

I need either a tool similar to pdftk for setting it or some information how to use javascript method to create or edit pdf on ubuntu.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source