view_page: draw the PDF page under the ink #100

Closed
opened 2026-11-27 16:48:37 +00:00 by jfro · 0 comments
Owner

Part of #99 (agent plan review).

Problem: view_page on a PDF/EPUB page renders only the ink on white (ocr/page_image.ex:74 rasterizes the SVG with rsvg; remarkable/renders.ex:35-42 uses the PDF only for size). An agent reading markup on a plan sees circles, arrows and strike-throughs with no text under them.

Proposal: composite the PDF page (pdftoppm or mupdf at the page's size) under the ink SVG for PDF/EPUB pages. Keep ink-only as an option for OCR if needed.

Done when: view_page on an annotated PDF page shows the printed page with the markup in place, matching the tablet.

Part of #99 (agent plan review). **Problem:** `view_page` on a PDF/EPUB page renders only the ink on white (`ocr/page_image.ex:74` rasterizes the SVG with rsvg; `remarkable/renders.ex:35-42` uses the PDF only for size). An agent reading markup on a plan sees circles, arrows and strike-throughs with no text under them. **Proposal:** composite the PDF page (pdftoppm or mupdf at the page's size) under the ink SVG for PDF/EPUB pages. Keep ink-only as an option for OCR if needed. **Done when:** `view_page` on an annotated PDF page shows the printed page with the markup in place, matching the tablet.
jfro closed this issue 2026-11-27 18:25:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#100
No description provided.