how to regulate parallel port pin output voltage to 5V
TTL logic should accept anything over 2.0 volts as a high. A TTL output high is only guaranteed to be above 2.4 volts, according to an ancient TI databook.

You shoud therefore design your inputs to accept anything over 2.0 volts as high, and anything under 0.8 volts as low.