Article 5QPPA Prints two separate documents on the same page

Prints two separate documents on the same page

by
alice tan
from LinuxQuestions.org on (#5QPPA)
Hi All,

We are new to Linux and currently facing the below issue.

Hope that can get some advise from all.

when we print 2 separate document(delivery order), the 2nd document is always print at the bottom of 1st document(after last line of data printed on 1st page).

the correct printing layout should be 2nd document is print at a new page instead of continue the 1st page.

we had try to add the formfeed script as below
Example 1:

"#!/bin/bash
shift;shift;shift;shift;shift
cat $*
echo -ne "\f""

Example 2:
"#!/bin/bash
shift;shift;shift;shift;shift
cat $*
echo -e "\f\c"

we also try to create a new ppd to link to the script above.

but when we run the printing, the document still print without form feed.
May i know that how can we add in the form feed/page eject to the printer, so when we print thru the printer it can have a new page for new document?

Thank You.latest?d=yIl2AUoC8zA latest?i=qmkMlR52tfA:qTOCTS6Z6_w:F7zBnMy latest?i=qmkMlR52tfA:qTOCTS6Z6_w:V_sGLiP latest?d=qj6IDK7rITs latest?i=qmkMlR52tfA:qTOCTS6Z6_w:gIN9vFwqmkMlR52tfA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments