PDF.js Express Version
UI version | “7.2.0” |
---|---|
Core version | “7.2.2” |
Build | “MS8xMi8yMDIxfDcxODAxYzM3NA==” |
WebViewer Server | false |
Full API | false |
Detailed description of issue
Hi
i am using the print function instance.printInBackground but in the browser preview this always has a low quality. I entered the call instance.setPrintQuality(10); both before instance.printInBackground and inside
WebViewer (…)
.then (function (instance) {
instance.setPrintQuality (2);
});
but without success.
Strangely, if I open the print panel, select the HIGH quality, I make the preview then also in my function it is kept high.
It appears that the printInBackground function takes the quality from the panel
Expected behaviour
high quality print
Does your issue happen with every document, or just one?
every document
Code snippet
instance.setPrintQuality(10);
instance.printInBackground({
pagesToPrint: arrayPages,
includeComments:false,
includeAnnotations: false,
onProgress: function(pageNumber, img) {},
});