Add PDF rendering support in Streamlit and Quarto reports#184
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Open
Agent-Logs-Url: https://github.com/Multiomics-Analytics-Group/vuegen/sessions/b632fbf7-de0f-4f89-89dd-de8bf88a56df Co-authored-by: enryH <2833836+enryH@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add PDF support to visualize figures in reports
Add PDF rendering support in Streamlit and Quarto reports
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VueGen had no support for PDF files as report components. This adds end-to-end PDF rendering: auto-detection from directory scans through to output code generation for both Streamlit and Quarto report types.
Changes
report.py: AddedPDFtoPlotTypeenumconfig_manager.py:.pdffiles are now auto-detected and configured asplotcomponents withplot_type=pdfstreamlit_reportview.py: Generatesst.pdf()rendering code — reads bytes from local files or fetches from URLs viarequestsquarto_reportview.py: Adds_generate_pdf_content()that embeds PDFs via an HTML<iframe>(suitable for HTML/RevealJS output formats)Example — generated Streamlit code for a local PDF
For URL sources, the file is fetched via
requests.get()and the response bytes are passed directly tost.pdf().