File size: 287 Bytes
552f80c
d6a72d9
 
41265a0
d6a72d9
 
41265a0
 
 
 
461810f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st
import os
from pdf2image import convert_from_path

def convert_pdf_to_images(pdf_path):
    images = convert_from_path(pdf_path)

    for i, image in enumerate(images):
        image.save(f'image{i}.png')

if st.button('ss'):
    convert_pdf_to_images('hoor.pdf')