Using Javascript with PDF to make words disappear
I would like to produce a PDF file so that for some words in the text,
when you click on the word, the word disappears. For example, there is a
text
one two three four five six seven eight nine ten
Then maybe some words are colored in yellow, and for those words, if you
click on it, it disappears.
This would be easy to do in an HTML page by using JavaScript. However, I
want to do it for a PDF file. I think it might be possible to do this
using JavaScript too. There are two places where I can make a modification
(1) The PDF file itself
(2) The reader of the PDF file. For example, the PDF reader pdf-js is
open-source, so we can make as much modification to the code as we like.
I think this feature will be really cool. How would I be able to do it?
No comments:
Post a Comment