JAVA : Take screenshot of text file

In above code there is a text file named “sample.txt”, it gets converted to “sample.png”. Just call the convert method and pass input path and output path as arguements and execute the code. Happy coding 🙂

Verified by MonsterInsights