How to convert a wide txt to pdf and keep the origin format on window 10

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.

Update page configuration

Open the txt file with windows notepad, and click Page Setup in File menu:

1660477684207

Then, change Size to A3 and change Orientation to Landscape:

1660477688682

Then, press the OK button on the bottom.

Save to pdf

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:

1660477718303

Open the saved pdf, and you can see that the page width is very big :

1660477694619

This article is originally created by tooli.top. Please indicate the source when reprinting : https://www.tooli.top/posts/wide_txt_2_pdf

Posted on 2022-04-08 Mail to author