Skip to content

pdf-converter: add renderer dispatch#43

Merged
marmarek merged 1 commit into
QubesOS:mainfrom
Jayant-kernel:gsoc-converter-dispatch
May 19, 2026
Merged

pdf-converter: add renderer dispatch#43
marmarek merged 1 commit into
QubesOS:mainfrom
Jayant-kernel:gsoc-converter-dispatch

Conversation

@Jayant-kernel

@Jayant-kernel Jayant-kernel commented May 17, 2026

Copy link
Copy Markdown
Contributor

This is a small structure-only follow-up to #42.

It adds a simple renderer dispatch table on the server side and creates the current PDF renderer through that path. BaseFile now receives the renderer it should use instead of creating PdfRenderer directly.

PDF is still the only registered renderer in this PR. There is no new file type support yet, and no intended change to qvm-convert-pdf, qubes.PdfConvert, or the qrexec protocol.

Tests:

  • python -c "import sys, unittest; sys.argv=['unittest']; suite=unittest.defaultTestLoader.discover('qubespdfconverter/tests', pattern='test*.py'); result=unittest.TextTestRunner(verbosity=2).run(suite); sys.exit(not result.wasSuccessful())"
  • git diff --cached --check before commit

@Jayant-kernel
Jayant-kernel marked this pull request as ready for review May 17, 2026 07:06
@Jayant-kernel
Jayant-kernel force-pushed the gsoc-converter-dispatch branch from df217b7 to cc5317f Compare May 17, 2026 07:08
@Jayant-kernel

Copy link
Copy Markdown
Contributor Author

@marmarek
have a look at it .

@Jayant-kernel
Jayant-kernel force-pushed the gsoc-converter-dispatch branch from cc5317f to 47e0aba Compare May 19, 2026 05:41
@marmarek
marmarek merged commit 47e0aba into QubesOS:main May 19, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants