formfeeds

I have lots of old program sources and listings that have embedded formfeed characters to page the listings. But modern printers seem to ignore them, maybe print a little box but not eject the rest of the page.

Does anyone know of a way to print properly paged listings on a networked digital copier or laser printer?

Crimson Editor can't do this.

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin
Loading thread data ...

BBEdit by Barebones? Update of TextWrangler...Mac based though, no suggestions for PCs.

John :-#)#

Reply to
John Robertson

There's an old UNIX program called a2ps - ASCII to PostScript that does a really nice job of converting a bunch of formats to nicely formatted pages. Easily available or part of standard package on Linux, but it can be put on Windows systems as well. I use it a lot. Of course, you need a printer that accepts PostScript.

Jon

Reply to
Jon Elson

or a2pdf

Reply to
JM

Print from vim with option :set printoptions=formfeed:y

Reply to
JM

I guess you just want to get rid of the form feed characters. It's a common problem solved with a stream editor:

--
Jeff Liebermann     jeffl@cruzio.com 
150 Felker St #D    http://www.LearnByDestroying.com 
Santa Cruz CA 95060 http://802.11junk.com 
Skype: JeffLiebermann     AE6KS    831-336-2558
Reply to
Jeff Liebermann

No, I want my networked printer to feed a fresh page when the text file has a formfeed.

I can paste the text into Word, and it pages when I print, but too much else gets messed up.

I could write a utility that converts ff to some page-feed escape sequence or something, if our Cannon digital copier recognizes such a sequence.

--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

A word processor should be able to search and replace the form feeds with its own page code. Word Perfect for DOS could do that easily. Word might be too bloated to do something so simple. But WP for DOS can read text files and Word can read WP files.

Reply to
Tom Del Rosso

If your printer is set to do PCL, Postscript, or emulate some other printer, it might be ignoring form feed characters. If you're trying to add a FF character after the end of a block of Postscript or PCL commands, it might recognize the FF character, but within the block of formatting text will only result in a cryptic character block or printing ^L.

What maker and model printer are you using? Does the printer have an "ASCII Printer" emulation mode?

Hmmm... maybe a text printer will work. In Windoze, add a printer called: Generic -> Generic/Text Only and see what happens when you print to it. If your printer defaults to a plain old ASCII line printer, it should work. If your printer does not support some kind of line printer mode, it won't work. If you get "staircase" printing, you may need to add a CR (carriage return) with every LF (line feed).

--
Jeff Liebermann     jeffl@cruzio.com 
150 Felker St #D    http://www.LearnByDestroying.com 
Santa Cruz CA 95060 http://802.11junk.com 
Skype: JeffLiebermann     AE6KS    831-336-2558
Reply to
Jeff Liebermann

or just pr pr converts all FF to NL(s)

Reply to
edward.ming.lee

John - Hewlitt Packard's PCL notation uses the following escape sequence for a fresh page: &1OH ie: 0x1b 0x26 0x6c 0x30 0x48 Might work.

Hul

John Lark> > >> >

Reply to
Hul Tytus

Turns out that PowerBasic has everything I need. It can discover all the available printers and has all the tools to do formatting and such, like XPRINT FORMFEED. Maybe I'll write a little Windows app that I can drag a text file onto, to print on our networked copier.

A few lines of code does this:

1 SHARP UD2 PCL6 2 Send To OneNote 2010 3 Microsoft XPS Document Writer 4 iR-ADV C5540 5 HP LaserJet CP1525nw UPD PCL 6 6 HP Color Laserjet 3800dn 7 GP Laserjet 5100tn 8 Foxit Reader PDF Printer 9 Fax
--

John Larkin         Highland Technology, Inc 
picosecond timing   precision measurement  

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

That says "one" followed by "capital letter O"

but the hex says "lower case letter L" followed by "zero."

Reply to
Tom Del Rosso

rename it something.txt and import into libreoffice?

--
Using Opera's mail client: http://www.opera.com/mail/
Reply to
David Eather

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.