From 183fcc5fabcdf5cc648d86a543fcede0ae5be834 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Sun, 16 Aug 2026 08:45:14 +0200 Subject: [PATCH 1/3] Render PDFs with odrcore, and hide the buttons a document cannot use PDFs were the one format pushed off odrcore on purpose: `translate` refused them and `documentLoadingError` handed the file to WKWebView, which drew it with the system viewer. Nothing in the app reached inside that - no search, no fit to the screen, and the tool bar sat above a page it knew nothing about. odrcore has rendered PDFs itself since 6.2, so the guard is gone and a pdf goes down the same path as a document: `isPdfFile` joins the guard, and the branch that has no `Document` behind it - the one a csv already took - translates the decoded file. `.unknown` keeps the combined view, which for a pdf is every page. Images, media and fonts stay with the system. odrcore translates them too, but only into an `` or a `