updated UI
Browse files
app.py
CHANGED
@@ -164,6 +164,23 @@ def main():
|
|
164 |
st.markdown("<h1 style='text-align: center; color: blue;'>PDF DATA SNACHER:PAGEWISE</h1>", unsafe_allow_html=True)
|
165 |
st.markdown("<h3 style='text-align: center;color: brown;'>Extract valuable text and images from PDFs effortlessly and Convert PDFs into editable text and high-quality images </h3>", unsafe_allow_html=True)
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
st.sidebar.markdown(
|
168 |
"""
|
169 |
<div style="background-color: lightgray; padding: 2px; border-radius: 2px; text-align: center;">
|
|
|
164 |
st.markdown("<h1 style='text-align: center; color: blue;'>PDF DATA SNACHER:PAGEWISE</h1>", unsafe_allow_html=True)
|
165 |
st.markdown("<h3 style='text-align: center;color: brown;'>Extract valuable text and images from PDFs effortlessly and Convert PDFs into editable text and high-quality images </h3>", unsafe_allow_html=True)
|
166 |
|
167 |
+
|
168 |
+
|
169 |
+
with st.expander("Click here for more information"):
|
170 |
+
st.write("""
|
171 |
+
This application allows you to extract text and images from PDF files and organizes them by pages. You can choose to extract only text, only images, or both, and the extracted data can be downloaded in JSON or XLSX format. Additionally, if you choose to extract images, you can download a ZIP file containing both the images and the JSON data.
|
172 |
+
- **What is different about this app?**
|
173 |
+
1. The sequence of text and images will get maintained as per its order in pdf file
|
174 |
+
2. You have options to extract entities from pdf
|
175 |
+
3. You can download data in JSON or XLSX format
|
176 |
+
|
177 |
+
- **PDF Preview:** You can preview a few pages of the uploaded PDF in the sidebar.
|
178 |
+
- **Extraction Type:** Choose whether to extract text, images, or both.
|
179 |
+
- **Minimum Font Size:** Set a threshold for the font size; text below this size will be ignored during extraction.
|
180 |
+
- **Output:** Download the extracted data as a JSON file, an Excel file, or a ZIP file (if images are included).
|
181 |
+
-
|
182 |
+
""")
|
183 |
+
|
184 |
st.sidebar.markdown(
|
185 |
"""
|
186 |
<div style="background-color: lightgray; padding: 2px; border-radius: 2px; text-align: center;">
|