# system.print.createPrintJob print to A4

**URL:** <https://forum.inductiveautomation.com/t/system-print-createprintjob-print-to-a4/34146>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 23, 2020, 3:53am UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob-print-to-a4/34146 "2020-04-23T03:53:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yifeiliu08](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yifeiliu08](https://forum.inductiveautomation.com/u/yifeiliu08)\
**Post date:** [April 23, 2020, 3:53am UTC](https://forum.inductiveautomation.com/t/system-print-createprintjob-print-to-a4/34146/1 "2020-04-23T03:53:06Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e0667492d6ff86ef932968b2cd5b9bfb6eb5b646.png)  
i have create a template and draw the template to the screen name is print, i want to print them to A4 paper  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bbd59dd05651fe2ca5fdb4409da07db67ec92d03.png)  
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](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/58f34f7623bcb128218d1e13c8741d2135ffef52.png)

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/59b64cbfae4eaf643361f5b4d43d79d39a8bdc6b.png)

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
