Low quality when printing a document

Hello,

So, I tried to print a document using the document editor's print function.
It prints fine, but I noticed that when printing using MS Word, quality is much higher that using the document editor to print.

Thanks for your help,

3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team March 26, 2021 08:53 AM UTC

Hi Omar, 

Syncfusion Greetings! 

Documenteditor rendering follows convas rendering approach. When print, Document editor converts canvas as image for printing, its quality is low when compared with MS Word. 

To print the document editor content with high quality, you can send the document editor content to server-side and convert it to pdf using DocIO and return the pdf document as base64 string to client-side and open it in preview window.  

For your reference, please check the below sample which is in MVC. 


Here is the DocIO documentation on converting word document to PDF. Kindly check it. 



Regards, 
Suriya M. 


Marked as answer

MI miles May 12, 2022 11:27 AM UTC

To print the record editor content material with excessive exceptional, you could ship the record editor content material to the server-aspect and convert it to pdf the usage of DocIO and go back the pdf record as base64 string to the client-aspect and open it withinside the preview window. Document editor rendering follows the canvas rendering approach. When printing, the Document editor converts canvas because the photograph for printing, its exceptional is low while as compared with MS Word, and more printing nearby



SM Suriya Murugan Syncfusion Team May 13, 2022 08:17 AM UTC

Hi Omar,

Yes, above provided details is correct.


Also, we have included printdevicepixelratio to  increase the printed image quality. 

https://ej2.syncfusion.com/vue/documentation/document-editor/print/#improve-print-quality


Code snippet:  

container. documentEditorSettings.printDevicePixelRatio=2;  


API documentation: https://ej2.syncfusion.com/documentation/api/document-editor/documentEditorSettingsModel/#printdevicepixelratio  


Note: Give the value as 2 by default the value is 1.  


Please check it and let us know if you have any questions. 


Regards,

Suriya M.



Loader.
Up arrow icon