Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

txt to image python

import aspose.words as aw

doc = aw.Document(Input.txt)
          
for page in range(0, doc.page_count):
    extractedPage = doc.extract_pages(page, 1)
    extractedPage.save(f"Output_{page + 1}.jpg")
Source by products.aspose.com #
 
PREVIOUS NEXT
Tagged: #txt #image #python
ADD COMMENT
Topic
Name
2+4 =