I am looking for converting text file into PDF using PSWritePDF. I got sample codes where New-TextPDF having hardcoded text samples.
I need a code function to dynamically read lines from Text file and convert into PDF. Could you please share the function which can do that in PSWritePDF?