Skip to content

Create PDF from mainframe output with FORTRAN (ASA) carriage control

License

Notifications You must be signed in to change notification settings

AndrewHastings/lp2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lp2pdf

lp2pdf reads output files with old-style FORTRAN carriage control in column 1 (aka "ASA") and interprets those controls to produce PDF documents.

Installation

lp2pdf requires version 2.043 or newer of the Perl PDF::API2 module. Install it with your system's package manager. Or, you may be able to install it locally with:

cpan -I PDF::API2

Examples

  1. Simulate printing output from the DtCyber emulator:

    lp2pdf -m lined -st -o out.pdf LP5xx_C12_E6
    acroread out.pdf
    
  2. Simulate printing user documentation:

    lp2pdf -f Courier -p letter ~/txed.lp
    acroread txed.pdf
    
  3. Simulate DECwriter III dense printing on "sight saver" paper:

    lp2pdf -c 16.5 -f ~/mnicmp.ttf -m ss -p letter widefile.lp
    acroread widefile.pdf
    
  4. Simulate printing on a Teletype 33 with yellow roll paper:

    (echo -e '\n\n\n' ; sed -e 's/^/ /' out.txt) > out.lp
    lp2pdf -f ~/TTY37ts109-Book.ttf13 -m tty -sp tty -i 0.62 out.lp
    acroread out.pdf
    

See "Suggested fonts" below for the 'mnicmp' and 'TTY37ts109-Book' fonts, and the "References" for some background info.

The DECwriter III can print at 5, 6, 6.6, 8.25, 10, 12, 13.2, or 16.5 CPI; and at 2, 3, 4, 6, 8, or 12 LPI.

Suggested fonts

Most of these fonts are free for personal use -- consult the individual websites for license terms.

TTY37ts109-Book (use 13pt size)

mnicmp (DECwriter II/III)

LA36-Book (DECwriter II but 12pt size is not 10 cpi)

Teletype Retro (seems buggy)

Chainprinter (no lowercase, not free)

References

About

Create PDF from mainframe output with FORTRAN (ASA) carriage control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages