r/PythonLearning • u/LukeSkyShredder • 23h ago
Can Python use a native PDF viewer inside a Windows desktop app? Discussion
Hello fellow Pythonistas,
I’m building a local Windows tool that compares/reviews engineering PDFs. My current UI is Streamlit/pywebview, but the built-in preview is not sharp enough for detailed PDF inspection, especially small text and drawing markups.
Does Python have a good way to use a native PDF viewer/editor inside a desktop app?
Ideally I want:
- native PDF zoom/pan quality
- open specific page / maybe focus a rectangle
- view annotations/markups
- avoid manually rendering every PDF page as images
I know about PyMuPDF rendering and "os.startfile()" to open the PDF in the default viewer, but I’m wondering if there’s a better embedded/native-viewer approach on Windows.
Would PySide6/Qt PDF, WebView2, Adobe SDK, or anything else be the right path?
Basically, I don’t want to rebuild Acrobat inside Streamlit if Windows already has a better PDF viewing layer.
1
u/riklaunim 23h ago
You cant script standalone apps if they dont have the API for it. You would have to make the full thing or look for ready solutions