## 2011-08-21

### Set page margins with TextEdit

I did not find any way to set the page margins with TextEdit itself in an RTD (RTFD) document. But actually this is quite easy to do by editing the RTF file (or RTFD/TXT.rtf file) directly as ASCII (for example with emacs etc).

On the fifth line you will find this:

```\paperw11900\paperh16840\margl1440\margr1440\margb360\margt360\vieww27000\viewh21300\viewkind1\viewscale125
```

The margl and margr are for the left and right margin, respectively (1440 = 1.0 inch = 25.4 mm). I added margt and margb for the top and bottom margin in the example above to be 360 (= 0.25 inch). These two are usually not part of an RTF which you created with TextEdit.