1

I have a file that is 80 characters wide. I am using OS X. The problem that I have is when I open the file and try to print it in TextEdit, the lines wrap before the 80 character mark. I'd like the file presented in the same way printed as it is in the file. So, my question is this;

How do I print an 80 character wide ASCII file (and preferably specifying margins) such at the font will be fixed-width and sized appropriately to fill the entire page while still retaining the position of original line breaks and not additional wrapping. If the resultant file is a PDF or other format convertible to PDF that would be fine. If anybody could answer this question I would really appreciate it.

1

In Textedit, make the file plaintext by going to the Format menu, and selecting the Make Plain Text command. This will use a fixed-width font and remove any other characters.

Next, Select Page Setup... from the File menu, then select Paper Size: and go to Manage Custom Sizes.

Create a Paper Size of 8.5 wide x 11 high, set the top, bottom, left & right margins to zero, then save the custom size by clicking the "+" button.

Go to the File menu > Export as PDF.

On the Export as PDF click on show details and uncheck the box that says Rewrap contents to fit page

Just tested this and it works for me!

  • I appreciate you responding, IconDaemon. Unfortunately this did not work for me, it is still adding line breaks and not fitting 80 columns on one line. – dps Nov 24 '16 at 17:58
  • It worked for me +1. @dps Could you upload a sample of the file and provide a link? – user3439894 Nov 24 '16 at 18:01
  • certainly, thank you both for your help. gist.github.com/dsulli99/1cb9ebc455e0307d367deb4d6a495689 – dps Nov 24 '16 at 18:09
  • Textedit does not wrap the lines for me even in rtf mode. – Mark Nov 24 '16 at 18:16
  • It doesn't wrap the lines until I print it, even with 0 margins on 8.5x11 – dps Nov 24 '16 at 18:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .