Linux running inside a PDF file via a RISC-V emulator
github.com
github.com
It’s no wonder we have endless security issues when documents that should be just data and metadata (layout) declarations are Turing complete. Sigh.
on one hand: applauds ingenuity
on other hand: gapes at major security hole in PDF, wonders why this is defacto document type in industry for readingIn seriousness, it’s impressive and highlights how awful the PDF format is. Can we have a document format that is less encumbered, more structured, and more accepted as a “real” document yet?
I had done LLM in PDF sometime Nov last year but it wasn't released. Since the doom in pdf uptick, I had released a demo here:
https://x.com/VulcanIgnis/status/1879649889178837025
Actually you don't need an old version of emscripten, hit me up for the Makefile and pdf templates or wait till offical release. My build script will make the pdf work both on chrome and firefox, adobe support is pending.
FYI, the PDF is 6.2 MB.
An embedded page at linux.doompdf.dev says
TypeError: Cannot set properties of null (setting 'value')
at Object.0.9657115108887302 (<anonymous>:248:42)
at set_interval_callback (<anonymous>:43:24)
at <anonymous>:1:6”This architecture does not have memory protection”
—_—
Show HN: Doom (1993) in a PDF - https://news.ycombinator.com/item?id=42678754 - Jan 2025 (74 comments)
It's called Locked Markdown. `*.lmd`.
It provides 98% of the functionality most people use PDFs for, without all the extra bullshit.
The Spec:
- The most popular Markdown Spec (git flavour?)
- At the top of the page place a hash sum of the markdown below a marker on the page.
LMD Reader:
- Prevents editing the markdown.
- Warns user if the hash sum is not valid.
Example:
```lmd
sha256 77ec0f678315f8a207c3501137e1dfc9642b79a9c93e21807df7b5242846c05c
-------------------------------
# Header 1
Paragraph of text about how bloated the PDF format is.
```
Zip .lmd together with images/videos if required.
I just don't see why PDF would be your file format of choice if you're writing JS.
* auto-computes formulas
* enables and disables whole sections of the document depending of filled values
* performs complex validation, beyond checking for required fields and regexp patterns
* offers inline help
* can be filled, saved and printed completely offline
* when printed, looks exactly the same as traditional, paper form
* don't require external software beyond a PDF readerFrontend form validation. Hide/show widgets, etc
The BOIR is an important tool for helping investigate money laundering. Its constitutionally is in doubt, apparently by people who think money laundering is a good thing.