From b3519433ebbcc218d9dbb5372dbf53da1a9d7d46 Mon Sep 17 00:00:00 2001 From: Gagancreates Date: Fri, 8 May 2026 02:07:16 +0530 Subject: [PATCH] feat: render pdf files via chromium pdfium plugin --- apps/x/apps/main/src/main.ts | 3 + apps/x/apps/renderer/src/App.tsx | 5 ++ .../src/components/pdf-file-viewer.tsx | 56 +++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 apps/x/apps/renderer/src/components/pdf-file-viewer.tsx diff --git a/apps/x/apps/main/src/main.ts b/apps/x/apps/main/src/main.ts index 661f73a3..3cfd3f4f 100644 --- a/apps/x/apps/main/src/main.ts +++ b/apps/x/apps/main/src/main.ts @@ -221,6 +221,9 @@ function createWindow() { contextIsolation: true, sandbox: true, preload: preloadPath, + // Enable Chromium's built-in PDFium plugin so