Hello
I would recommend you to check this archived thread regarding the same issue, on how to define the quality of XPS printing:
Hope this helps with your query,
--If the reply is helpful, please Upvote and Accept as answer--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Based on the Microsoft v4 printer driver architecture, I am developing a custom render filter which requires an input XPS that embeds images with PNG lossless quality.
An unexpected behaviour affects Microsoft Paint application when printing an image via a v4 printer driver because the image quality setting used for the XPS generation is completely ignored.
As an example, the issue is shown by printing a file with XPS Document Writer Printer because the underlying architecture of a v4 printer driver entirely depends on XPS generation.
1 - Open an image with paint
2 - Open the advanced settings and set the image quality to PNG – Lossless compression
3 - Print the image to an xps file
4 - Unzip the xps file
5 - Browse inside the folder <xps_file>\Documents\1\Resources\Images
The unpacked XPS shows that internally the image has been stored with JPG format in place of the PNG format selected in the advanced setting of the printer.
The resulting XPS file (on the right) clearly shows lower quality and blurred artifacts
This behaviour has been tested on Windows 10 Operating System for x64 architecture. Note that the input image has a 24bit RGB color format.
It seems that different image formats show different outcomes, even though the quality setting always seems to be ignored.
In addition, I have tried to set the directive PageOutputQuality.[option]=MxdcImageType.PNG in my custom v4 printer driver manifest file (for all draft, normal, high options) as described here:
v4-driver-manifest
Also with these directives, the PNG image quality settings is ignored
Is there any workaround to force PNG lossless image quality in the resulting XPS file? Is this a well-known behaviour?
Many thanks for any answer
Hello
I would recommend you to check this archived thread regarding the same issue, on how to define the quality of XPS printing:
Hope this helps with your query,
--If the reply is helpful, please Upvote and Accept as answer--