sLemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alessandro@lemmy.ca to PC Gaming@lemmy.caEnglish · 7 months ago

A 60KB pdf file that runs Tetris.

th0mas.nl

external-link
message-square
10
link
fedilink
61
external-link

A 60KB pdf file that runs Tetris.

th0mas.nl

alessandro@lemmy.ca to PC Gaming@lemmy.caEnglish · 7 months ago
message-square
10
link
fedilink
alert-triangle
You must log in or register to comment.
  • rdri@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 months ago

    Info

    https://th0mas.nl/2025/01/12/tetris-in-a-pdf/

  • SplashJackson@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 months ago

    Wow

  • ZC3rr0r@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    7 months ago

    This dude also got Doom to run in a PDF FYI. Pretty insane level of scripting support for a supposedly static document format.

    • BCsven@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 months ago

      Which is why I open unknown source PDFs in a VM :)

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 months ago

    This did not work on my iPhone. Instead there’s just an empty white box in the upper left-hand corner of the page.

    • reddig33@lemmy.world
      link
      fedilink
      English
      arrow-up
      23
      arrow-down
      1
      ·
      7 months ago

      That’s probably a good thing. Why on earth should a pdf file be able to do something like this? Just seems like another potential attack surface.

    • DdCno1@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      Which PDF reader were you using?

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        It’s the built-in PDF reader as part of the browser. I’m not aware that it has any name.

        • DdCno1@beehaw.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 months ago

          It would probably work in Adobe Reader. Surprisingly, it works in Firefox built-in PDF viewer, which has iffy compatibility with some more complex PDFs, but it might not work in the very different iOS build of this browser.

  • Sunshine (she/her)@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 months ago

    That’s impressive.

PC Gaming@lemmy.ca

pcgaming@lemmy.ca

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !pcgaming@lemmy.ca

For PC gaming news and discussion. PCGamingWiki

Rules:

  1. Be Respectful.
  2. No Spam or Porn.
  3. No Advertising.
  4. No Memes.
  5. No Tech Support.
  6. No questions about buying/building computers.
  7. No game suggestions, friend requests, surveys, or begging.
  8. No Let’s Plays, streams, highlight reels/montages, random videos or shorts.
  9. No off-topic posts/comments, within reason.
  10. Use the original source, no clickbait titles, no duplicates. (Submissions should be from the original source if possible, unless from paywalled or non-english sources. If the title is clickbait or lacks context you may lightly edit the title.)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 727 users / day
  • 2.46K users / week
  • 4.87K users / month
  • 12.4K users / 6 months
  • 1 local subscriber
  • 11.9K subscribers
  • 6.03K Posts
  • 43.5K Comments
  • Modlog
  • mods:
  • EXiLE@lemmy.ca
  • Uncle@lemmy.ca
  • KairuByte@lemmy.dbzer0.com
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org