Displaying a PDF in Streamlit that's already inside code

Hi, I was wondering on how to store the PDF inside the code, and let Streamlit display it on the front end. Is there any method that can do exactly that?

I could not find the exact method around this forum and in the internet.

By the way, I am using Replit and would appreciate if your method works with Replit.

Thank you!

With Streamlit 1.49.0, Streamlit has a new st.pdf command for displaying PDF files.