
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
A NiceGUI PDF component (using pdf.js) to nicely integrate PDFs without the need for iframes without having any control on which page is shown or without the possibility to read the seelcted text. Install with
pip install nicegui-pdf
A quick example on how to use the component is given next:
from nicegui import ui, app
from nicegui_pdf import PdfViewer
# [...]
state = {
"current_page": 1,
}
# [...]
ui.number().bind_value(state, "current_page")
path = app.add_static_file(local_file="example/paper.pdf")
PdfViewer(path).classes("w-full").style(
"border: solid 1px gray;"
).bind_current_page(
state
)
current_page
num_pages
, is_rendering
and selected_text
A full example demonstrating all features is given in example/main.py
:
Optional
I'm neither a JS, NiceGUI or VUE expert. I simply tested a few things and found that an older version of PDF.js can be integrated as a custom NiceGUI component. Therefore, I cannot give any warranty etc. but still I'm trying to maintain this code. If you find any bugs or have feature requests, please open an issue or a pull request.
If you like it and want to buy me a coffee:
Thank you so much!
FAQs
A PDF viewer for nicegui based on pdf.js
We found that nicegui-pdf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.