File size: 565 Bytes
9f21f05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# main.py
from textToPdf import create_pdf
from pdfToImage import pdf_to_image

def main():
    # Sample input text
    input_text = "This is a sample text that will be used to generate the PDF. " * 500  # Example long text
    
    # Call the create_pdf function and get the path of the generated PDF
    pdf_path = create_pdf(input_text)
    image_path = pdf_to_image(pdf_path)

    # Print the output path of the generated PDF
    print(f"PDF generated successfully: {pdf_path}")

    for i in image_path:
        print(i)

if __name__ == "__main__":
    main()