Fix print font size bug and Edit printResolution to 300.

This commit is contained in:
BoHung Chiu 2022-03-16 15:16:53 +08:00
parent a82706cfc8
commit 32855e3ff3
4 changed files with 4 additions and 4 deletions

View File

@ -12634,7 +12634,7 @@ var CanvasGraphics = /*#__PURE__*/function () {
}
this.current.fontSizeScale = size / browserFontSize;
this.ctx.font = "".concat(italic, " ").concat(bold, " ").concat(browserFontSize / 16.0, "em ").concat(typeface);
this.ctx.font = document.body.dataset.pdfjsprinting ? "".concat(italic, " ").concat(bold, " ").concat(browserFontSize, "px ").concat(typeface) : "".concat(italic, " ").concat(bold, " ").concat(browserFontSize / 16.0, "em ").concat(typeface);
}
}, {
key: "setTextRenderingMode",

File diff suppressed because one or more lines are too long

View File

@ -132,7 +132,7 @@ var defaultOptions = {
kind: OptionKind.VIEWER + OptionKind.PREFERENCE
},
printResolution: {
value: 150,
value: 300,
kind: OptionKind.VIEWER
},
renderer: {

File diff suppressed because one or more lines are too long