Fix labels printing blank pages, adjust stuff until lines print clean
This commit is contained in:
parent
1879a80151
commit
f3429366c9
@ -2057,6 +2057,12 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#printContainer div img {
|
||||||
|
image-rendering: pixelated;
|
||||||
|
image-rendering: -moz-crisp-edges;
|
||||||
|
image-rendering: crisp-edges;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (-webkit-min-device-pixel-ratio: 1.1), screen and (min-resolution: 1.1dppx) {
|
@media screen and (-webkit-min-device-pixel-ratio: 1.1), screen and (min-resolution: 1.1dppx) {
|
||||||
/* Rules for Retina screens */
|
/* Rules for Retina screens */
|
||||||
.toolbarButton::before {
|
.toolbarButton::before {
|
||||||
|
@ -3625,7 +3625,7 @@ const defaultOptions = {
|
|||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE
|
||||||
},
|
},
|
||||||
printResolution: {
|
printResolution: {
|
||||||
value: 1200,
|
value: 2000,
|
||||||
kind: OptionKind.VIEWER
|
kind: OptionKind.VIEWER
|
||||||
},
|
},
|
||||||
renderer: {
|
renderer: {
|
||||||
@ -13137,8 +13137,9 @@ PDFPrintService.prototype = {
|
|||||||
useRenderedPage(printItem) {
|
useRenderedPage(printItem) {
|
||||||
this.throwIfInactive();
|
this.throwIfInactive();
|
||||||
const img = document.createElement("img");
|
const img = document.createElement("img");
|
||||||
img.style.width = printItem.width;
|
img.style.width = (printItem.width.replace("px", "") - 2) + "px";
|
||||||
img.style.height = printItem.height;
|
img.style.height = (printItem.height.replace("px", "") - 2) + "px";
|
||||||
|
|
||||||
const scratchCanvas = this.scratchCanvas;
|
const scratchCanvas = this.scratchCanvas;
|
||||||
|
|
||||||
if ("toBlob" in scratchCanvas && !this.disableCreateObjectURL) {
|
if ("toBlob" in scratchCanvas && !this.disableCreateObjectURL) {
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user