system.print.createPrintJob print to A4


i have create a template and draw the template to the screen name is print, i want to print them to A4 paper

job = system.print.createPrintJob(event.source.parent.getComponent(‘print’))
job.setMargins(0.1)
job.setPageHeight(8.27)
job.setPageWidth(11.69)
job.setOrientation(0)
job.print()
image

after i open the PDF document, i have see the page are not full extended

i have adjust the parameter job.setZoomFactor(double)
and job.setPageHeight(8.27)
job.setPageWidth(11.69)
all the try not success.
can you tell me how to make the page size is A4