Normally, we can save a txt file to pdf with notepad's print function. But if the text has a big width, then the converted pdf can be a mess.
Why does this happen? Becase, the printed pdf has a default width of A4 paper which is possibly smaller than the original text, so the pdf has to wrap wide lines.
We need to make the printed paper as wide as possible.
Open the txt file with windows notepad, and click Page Setup
in File
menu:
Then, change Size
to A3
and change Orientation
to Landscape
:
Then, press the OK
button on the bottom.
Press Ctrl + p
to open the printing dialog. (Or you can click Print
in File
menu.)
Choose Microsoft Print to PDF
, click Print
, and give the pdf a file name:
Open the saved pdf, and you can see that the page width is very big :