From 60367d8fe23f6af98ec28e3cf6c2094dfe332df0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 6 Sep 2026 18:11:36 -0300 Subject: Refactor panes and filesystem; replace FUSE with 9P Consolidate pane, layout, memory and host code. Serve 9P by default over Unix sockets, with runtime mounts and optional TCP/QUIC transports. Remove FUSE and obsolete proof-of-concept examples. Fix highlighting and terminal-history performance, expand differential and stress-test infrastructure, sort navigation results while preserving the next occurrence, add syntax-colored Braille minimaps, remove SPC-k, and document 9P interaction as a repository skill. --- src/pdf.zig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pdf.zig') diff --git a/src/pdf.zig b/src/pdf.zig index b7e12fe8..a12be0b1 100644 --- a/src/pdf.zig +++ b/src/pdf.zig @@ -726,6 +726,13 @@ pub const Document = struct { document.* = undefined; } + pub fn openBytes(bytes: []const u8) !Document { + var page_count: c_int = 0; + const handle = c.pardes_pdf_open_memory(bytes.ptr, bytes.len, &page_count) orelse + return error.OpenFailed; + return .{ .handle = handle, .pages = @intCast(page_count) }; + } + /// Load and flatten the PDF-native outline/bookmarks. MuPDF's temporary /// tree and the bridge's flat view are both dropped before this returns. pub fn outline( -- cgit v1.3