Skip to content

PDF preview with data URLs#29

Merged
slinjhu merged 1 commit into
SmooSenseAI:mainfrom
nikitakrh:main
Apr 30, 2026
Merged

PDF preview with data URLs#29
slinjhu merged 1 commit into
SmooSenseAI:mainfrom
nikitakrh:main

Conversation

@nikitakrh
Copy link
Copy Markdown
Contributor

Add PDF preview for raw PDF bytes in parquet columns

This PR extends functionality of commit 32d89d2 which supports image, audio and video preview from raw bytes.

The backend already detects %PDF magic bytes in BLOB cells and emits {bytes: "data:application/pdf;base64,...", path: "detected.pdf"}, and URL-based PDF columns already get PdfCellRenderer. But BLOB columns holding PDFs were falling through to the plain-text fallback at HuggingFaceMediaCellRenderer.tsx:91-95, so users just saw detected.pdf in muted text with no preview.

Example screenshot of the pdf preview:
image

@nikitakrh
Copy link
Copy Markdown
Contributor Author

I guess the CI failures are because of the same reason as in my last PR #27 ?

@slinjhu slinjhu merged commit ae17204 into SmooSenseAI:main Apr 30, 2026
2 of 3 checks passed
@slinjhu
Copy link
Copy Markdown
Contributor

slinjhu commented Apr 30, 2026

Thanks for contributing.

Released v0.1.48

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