зеркало из https://github.com/electron/electron.git
fix: printToPDF default margins (#36060)
printToPDF default margins The document printToPDF has a 1cm margin and this default value has been added in the code.
This commit is contained in:
Родитель
a8d89b3d52
Коммит
dde513b0d3
|
@ -177,10 +177,10 @@ WebContents.prototype.printToPDF = async function (options) {
|
|||
scale: 1.0,
|
||||
paperWidth: 8.5,
|
||||
paperHeight: 11.0,
|
||||
marginTop: 0.0,
|
||||
marginBottom: 0.0,
|
||||
marginLeft: 0.0,
|
||||
marginRight: 0.0,
|
||||
marginTop: 0.4,
|
||||
marginBottom: 0.4,
|
||||
marginLeft: 0.4,
|
||||
marginRight: 0.4,
|
||||
pageRanges: '',
|
||||
preferCSSPageSize: false
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче