March Docs

ScrollPdf

lib/scroll/pdf.march — Emit PDF blobs via the __SCROLL_BLOB__ sentinel protocol.

User code calls these helpers to embed PDFs in the notebook:

ScrollPdf.show(b64_data) -- embed a PDF document

The browser renders the blob as: <embed type="application/pdf" src="data:application/pdf;base64,<b64>"> with a download link as fallback.

Functions

fnmake_sentinelmake_sentinel(b64 : String) : String#

Build the raw sentinel string for a PDF blob (for testing / composing).

fnshowshow(b64 : String) : ()#

Embed a PDF document in the notebook output.

b64 must be a valid base64-encoded PDF file. The browser renders it using <embed> with a download fallback.

Examples

  march> ScrollPdf.show("JVBERi0x...")
  ()