# mppdf — a PDF viewer, part of the mp* app family (mpterm, mpwm, mpfiles, # mpimage, mpvideo, mptask, mpsheets, route, mixer...). # # `mppdf ` opens a document as one continuous scroll of pages on a # dark mp_theme background: PageDown/Space page through, Cmd +/- zoom, # Cmd+0 fits the width, Cmd+1 shows 100%, Cmd+scroll zooms around the # cursor, Cmd+Shift+T shows a thumbnail strip, Escape/Q quits. # `--preview ` sizes the window as a popup — that is mpfiles' Quick # Look. # # Nothing here parses or draws PDF: the parser is libs/pdf_parse and the # renderer is the `PdfView`/`PdfPageView` pair in widgets/src/pdf_view.rs # (feature `pdf`), which walks the page's content-stream ops straight into # DrawVector geometry and DrawText runs — no rasterization anywhere. This # crate is the viewer around them: an off-thread loader that streams parsed # pages in as they come, the zoom/fit/navigation maths, the thumbnail # strip, and the chrome. [package] name = "mppdf" version = "0.1.0" edition = "2021" default-run = "mppdf" [lib] name = "mppdf" path = "src/lib.rs" [[bin]] name = "mppdf" path = "src/main.rs" [dependencies] makepad-widgets = { path = "../../widgets", features = ["pdf"] } makepad-pdf-parse = { path = "../../libs/pdf_parse" } mp-theme = { path = "../../libs/mp_theme" } mp-wm-api = { path = "../../libs/mp_wm_api" }