With the recent CJEU ruling, libraries can lend ebooks like normal books if the book cannot be used after the lending period. Therefore I wanted to try building a PDF with Javascript which blacks out the content based on the date.

I found the example for hiding form fields with insdljs, but I did not manage to simply hide all existing text and instead show a message on every page like "lending period expired". With this method, it might be possible to fulfil the requirements of the CJEU ruling without any actual DRM and using TeX.

Can this be done in a way which at least works in Adobe Reader and in Firefox and Chrome? If yes, how?

  • 1
    Most PDF viewers do not support JavaScript. – Heiko Oberdiek Nov 15 '16 at 22:22
  • Welcome! And those which do support it will often have it disabled, often by default. – cfr Nov 16 '16 at 0:32
  • I know that most don’t support JavaScript, but for the (legal) use case that’s not important, since the "official" tool supports it. This would be a feature which builds on standards where the user is in power instead of using custom DRM. – Arne Babenhauserheide Nov 16 '16 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.