UNIX printing does not have an API for printing like Microsoft Windows does.
For this reason, when you print, the application is required to do the formatting.
UNIX and in particular AIX virtual printers offer only minor formatting such
as adding carriage returns to line feeds, or crlf after a certain number of
characters.
If you have a document that you are sending to a printer, it could be PostScript,
PCL, or plane text. As a previous reply mentioned, if it is PostScript, then there
is a tool called GhostScript that can act like a filter to make changes to the
document. There are also other "PostScript tools" that can be found.
It is possible to add 'filters' to the AIX virtual printer so that the filter program
can make the changes automatically while you print. For some PostScript
documents, if you understand PS well enough, the changes can be simple,
while with others they are more difficult.
For best results though, simply create the document with the right paper size.