Feature Request: Native PDF Rendering
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Feature Request: Native PDF Rendering
Currently, GG does not render PDF files in the repository view and instead shows that the format is unsupported, requiring users to open the file via the Raw button.
It would be useful to support inline PDF rendering on the file page using the browser’s built-in PDF viewer, while ensuring proper security isolation.
Proposed Functionality
-
Render PDF files directly in the repository file view
-
Provide a fallback option if the PDF cannot be loaded
-
Ensure the embedded PDF:
- cannot access page storage or cookies
- cannot execute scripts
- is isolated from the parent page
This would improve usability by allowing users to preview PDFs without leaving the repository page, while maintaining security.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the repository file view and locate the current unsupported-format handling. Investigate how the browser’s built-in PDF viewer can be embedded with the requested storage, cookie, script, and parent-page isolation, then define a fallback for loading failures. Done means PDFs render inline without weakening those security boundaries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100