我正在尝试使用 QZtray 2.0 打印 HTML 文件。文件在页面左侧打印。我也设置了高度和宽度,但同样的问题。
function printHTML()
{
var printData = [
{
type: 'html',
format: 'file',
data: test.html
}];
return qz.print(config, printData);
}
我已经设置了选项,
`colorType: 'Color',
copies: 1,
density: 600,
duplex: '',
interpolation: '',
jobName: null,
legacy: '',
margins: 0,
orientation: 'Portrait',
paperThickness: '',
printerTray: '',
rasterize: true,
rotation: 0,
scaleContent: true,
size: null,
units: 'in'`