bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
382 stars 54 forks source link

The print function does not work correctly #376

Open Gos1k opened 2 years ago

Gos1k commented 2 years ago

1) Summary: The print function does not work correctly

2) Description: When using the print function, the printer prints a blank page, regardless of what is in the document

3) Environment:

Windows 10 Pro x64, Build 19043.1320, Version 21H1

LazPaint 7.1.6, 64-bit, portable

Printer: Kyocera FS – 1035MFP

4) Steps to reproduce

Press File Press Print

5) Expected behavior The printer should print the specified image

6) Actual behavior The printer prints a blank page

circular17 commented 2 years ago

That's surprising. Have you tried another printer, for example Print To PDF?

lainz commented 2 years ago

I have an HP DeskJet Ink Advantage 2135 and I oftenly print with LazPaint without issues.

lainz commented 2 years ago

Notice that my printer uses ink and the printer of Gos1k uses toner.

melchiorrecaruso commented 1 week ago

I just wanted to report that I'm having the same issue.

LazPaint initially printed correctly, but after a few months, it started printing blank pages.

The printer I use in the office is a RICOH IM C2000.

The same images print correctly with other graphic programs like Microsoft Paint or Gimp.

Regarding virtual printers, Adobe PDF doesn't work, but Microsoft Print to PDF works fine.

Operating system: Windows 10 Pro 22H2

Regards

melchiorrecaruso commented 1 week ago

I think the problem is related to transparency & Windows because it started when I began to cut out the images.

On Linux (Fedora 40), both attached images are printed correctly. Later, I will try on another PC with Windows 10.

Regards

Edit1: Both images are printed correctly on my home pc with Win10 Home 22H2.

Edit2: If I use one of the two commands to remove the transparency and set the background color to white, the problem is solved. I still haven't figured out why the issue occurs on one PC and not the other.

OK KO

melchiorrecaruso commented 1 week ago

I believe I've figured out why the problem occurs at the office but not at home: not all printers support transparency.

Now that I've connected my work PC to the home printer, the issue has disappeared. Nevertheless, I think this problem should be addressed because it doesn't happen with Gimp or Paint.

Best regards, Melchiorre

circular17 commented 1 week ago

Hi Melchiorre!

Thank you very much for your feedback. Your detailed explanation seems to point towards a solution. Would that be to fill the background with white before printing?

Regards

melchiorrecaruso commented 1 week ago

You're welcome!

Yes, the solution could be to fill the background with white before printing.

circular17 commented 5 days ago

Thanks, I'm adding this issue to the next release

melchiorrecaruso commented 4 days ago

The solution for this problem also resolves the third issue in report #584, and the check for empty images can be removed.

Regards