Does the command "cat" work to print the entire document... including the last page? If yes, then probably the lines per page are not properly set.
Backup the file you have in the below path:
/var/spool/lp/admins/lp/interfaces/"printername"
Then try editinf to the below....
NB: The line with "trchan" may or may not be needed. It is here just for an example of what you can do with this file if you need to.
To use with a network printer using "rcmd" then just "envolve" everything in "{" "}" and
pipe "|" to rcmd servername printername
When dealing with a serial port, just change the "stty" line to whatever is required. You shouldn't need it because you are using a parallel port (Do you print to a device or a named pipe?)
This file does NOT do a FF as this should handled by the application.
---
# stty 9600 tab3 0<&1 2>/dev/null 1>&2
copies=$4
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
#trchan /usr/lib/mapchan/lp00.por < "$file" 2>&1
cat "$file" 2>&1
done
i=`expr $i + 1`
done
---
Look at the file currently in the path and adapt the above to your needs.