# printInBackground: print quality

**URL:** <https://pdfjs.community/t/printinbackground-print-quality/530>\
**Category:** Technical Support\
**Created:** [February 22, 2021, 9:08am UTC](https://pdfjs.community/t/printinbackground-print-quality/530 "2021-02-22T09:08:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![torloneg](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@torloneg](https://pdfjs.community/u/torloneg)\
**Post date:** [February 22, 2021, 9:08am UTC](https://pdfjs.community/t/printinbackground-print-quality/530/1 "2021-02-22T09:08:25Z")

</div>

**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) {},  
});

---

_[View the full topic](https://pdfjs.community/t/printinbackground-print-quality/530)._
