Home  >  Q&A  >  body text

Can PDF files run HTML5 and Javascript?

I have a stupid idea to try and make a program that won't be blocked on any computer since it will be embedded in a PDF (I heard Javascript can run in PDFs). It will run HTML5 and Javascript (and a little bit of CSS) in PDF files, mainly using the canvas element in HTML5 and WebGL in Javascript. Is this possible?

P粉113938880P粉113938880195 days ago595

reply all(1)I'll reply

  • P粉556159786

    P粉5561597862024-04-06 09:03:33

    No.

    PDFs can embed JS in the same way as HTML.

    PDFs cannot embed HTML. They have nothing equivalent to canvas elements.

    reply
    0
  • Cancelreply