Tip: Remove Page Breaks from RTF

This is for an obscure set of readers, I’m sure. But if you ever need to remove the page breaks from a RTF (rich text format) file, here’s how to do it:

  1. Open the RTF file in NotePad (I use NotePad++, which is an absolute must have replacement for anybody doing web dev)
  2. Search for “pagebb\” and replace with nothing (empty string)

I write this down because I keep forgetting what to search for. I will frequently run a Data Dictionary in phpMyAdmin on my web databases so I can have a nice dictionary of my Fields. I click in the report area on my browser, Alt-A to select all, Ctrl-C to copy it. Open WordPad or Word and Ctrl-V to paste it. Then Save As an RTF. For some reason, it doesn’t let you just delete those page breaks like you’d think, so I do the steps in this tip to zap them out the hard way.

One Response to Tip: Remove Page Breaks from RTF

  1. Andy January 26, 2010 at 2:33 pm #

    thanks for this tip! i had to replace a different line of syntax (“\par \page \pard\fi0\li0\ql\ri0\sb0\sa0\itap0”, but the general principle worked well for my document

Powered by WordPress. Designed by Woo Themes