Description: It seems as if the wrong color space is being used for generation of the Post Script code for grayscale images. Trying to view it with GhostView leads to an error. Also trying to print the document directly from LibO does not result on any output on the printer. Steps to Reproduce: 1. Create a new LibreOffice Writer Document 2. Insert > Image... > Select an image that is saved in grayscale 3. File > Print... > select Printer: Print to File... 4. Click on Properties... > Device > select Printer language type: PostScript Actual Results: PostScript file contains 'DeviceRGB' for that image Expected Results: should be a 'DeviceGray' instead Reproducible: Always User Profile Reset: No Additional Info: Version: 7.2.2.2 / LibreOffice Community Build ID: 20(Build:2) CPU threads: 96; OS: Linux 4.14; UI render: default; VCL: x11 Locale: en-US (C); UI: en-US Debian package version: 1:7.2.2-1 Calc: threaded
Created attachment 176179 [details] Writer Document with embedded images Simple LibO Document with two images embedded, one in RGB and one in Grayscale
Created attachment 176180 [details] PostScript file generated by LibO
(In reply to wischnew from comment #0) > 4. Click on Properties... > Device > select Printer language type: PostScript I'm sorry, but I can't find that setting. "Properties" shows proberties of my default printer
(In reply to Dieter from comment #3) > I'm sorry, but I can't find that setting. "Properties" shows proberties of > my default printer In this new window for the printer properties you have a tab "Device" where you can set "Printer language type" to the value "PostScript". Basically if you select "print to file" as printer and PostScript as file type, then the output file cannot be displayed correctly with a PostScript viewer. There is also no output on a PostScript printer for Writer Documents containing grayscale images. This behavior can also be achieved for any document containing any images by setting following options: 1. click on "Tools" > "Options..." 2. select "LibreOffice" > "Print" 3. on the right side set "Convert colors to grayscale"
I didn't test by printing to a physical device, but I confirm the result is like you describe when printing to a .ps file. Already in oldest of 43all bibisect repository. If I remove the RGB image, then the code is different: [/Indexed /DeviceRGB 255 I don't know what package you mean by GhostView, so couldn't check it. Arch Linux 64-bit Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 70987cc656f0cded915be5aa148f265a257ec791 CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 22 November 2022
We are deprecating and eventually removing PostScript printing. If one really needs a PostScript file, it can be converted to from PDF using external tools.