在打印内容处设置padding 单位mm (此处不能设置margin会有多打印一页空白bug)
js打印设置打印方向、去除页眉页脚
去除页眉页脚横向打印
去除页眉页脚纵向打印
factory.printing.header = "This is MeadCo" //页眉factory.printing.footer = "Advanced Printing by ScriptX" //页脚
factory.printing.portrait = true //true为纵向打印,flase为横向打印
factory.printing.leftMargin = 1.0//左页边距
factory.printing.topMargin =1. 0 //上页边距
factory.printing.rightMargin = 1.0 //右页边距
factory.printing.bottomMargin = 1.0 //下页边距
其他的不要设置,请注意,第三个属性为横向