Printing is not working
Hi
I have in my MAC HP DesignJet 120 T with 24" roll paper.
How can I print directly from Valentina? I always get following error message:
QPrintDialog: Cannot be used on non-native printers
I have connected the printer via USB and network.
The pdf printing works fine, but waisting paper.
--Timo
Comments (68)
-
-
I have Linux 64 bit laptop with Ubuntu 14.04, and Brother MFC4820 printer on local network:
Using test build 0.5.0.0.a I saved a layout to tiled PDF I can print it to a Brother printer No error messages
-
Hi Susan,
did a try on Linux 16.04 64Bit on the old Designjet 650C. As the plotter is from 1996, it is a bit sensible on the right data.
I used stable Valentina 0.44. Does it make sense in your opinion to install bleeding edge version?
Looking forward to work again with valentina after pausing due to time issues!
Best regards / Saludos Cordiales / Distinti Saluti / Avec mes meilleures salutations / 心想事成,万事如意 / Mit freundlichem Gruß
Matthias Burkhardt
Gesendet mit Oneplus One / Cyanogenmod 13 Am 31.05.2016 11:10 vorm. schrieb "Susan Spencer" <
-
Linux plotting is broken - this is an issue separate from the 'non-native printer' error message from QtPrinter. Cups support for plotters broke sometime last year.
I run Valentina on Windows to print to my Epson SureColor 44" plotter. (I used to have an HP 650 and those are great plotters!)
I talked with Hin-tak Lin at Libre Graphics Meeting this year about the broken cups support for plotters. I haven't talked with Till Kampeter yet. It seems that Linux Printing was unaware that a change in cups broke plotter support. This is a big issue.
The problem with printer drivers is that there are few people in the world who understand them and can support them. So it's difficult to schedule their time to work on something like this. I'm working it.
But again, the lack of plotter support in Linux Cups is different than the non-native error message generated by Qt.
-
repo owner I will try fix it, but only if someone will test it on mac. A virtual machine is not good for this.
-
Dear Susan,
thank you for the explanation. I am able to plot with Ubuntu on this plotter, but only if a PDF is exported out of Valentina and the PDF is then printed with Evince. This works solid. Problem is you have to define different paper sizes for every print otherwise paper is waisted. So it is necessary to define many different paper sizes in the Ubuntu Printer dialog. But it works! Native printing from Valentina is unfortunately not working :-/
Best Regards Buggi
Best regards / Saludos Cordiales / Distinti Saluti / Avec mes meilleures salutations / 心想事成,万事如意 / Mit freundlichem Gruß
Matthias Burkhardt
Gesendet mit Ubuntu 16.04 "Xenial Xerus"
-
repo owner Matthias, can you build the last source code from the develop branch and test my patch? If yes, i will publish it immediately.
-
Matthias, Please check the print size while you do this. Include a test square in your test patterns, I use a 10cmx10cm grid but this is probably overkill, something like 4x4 would work as well.
-
repo owner - changed status to resolved
Try to fix issue
#494. Seems like default constructor on mac creates non-native printer by default or default printer can't be found.→ <<cset a41c27792ec0>>
-
repo owner I published my patch. Can someone test it on mac?
-
repo owner - changed status to open
-
It's interesting that you can print to your plotter using PDF. MedialLab-Prado reported that the can no longer plot to their Epson SureColor and this happened about the same time that my plotting stopped.
The change that Linux drivers made last year was to make PDF the native printout format of Linux. So perhaps this may have affected some print drivers but not others?
The Linux HP 650C drivers stopped supporting the HP 'long format' option several years ago so that I couldn't print anything longer than 54", so I couldn't plot big historical patterns. This is why I bought the Epson SureColor T-7000, which doesn't work at all with Linux anymore!!! :(
But I really liked the HP 650C better. It's simpler and more sturdy.
-
Yeah there are a lot of complaints on the interwebs about Mac and Qt printing.
-
reporter Hi
I'm willing to test, but I don't have a compiling environment. How should I proceed? Are the easy instructions for the compiling environment?
--Timo
-
repo owner okay, i your case i will make special test build. Just wait.
-
Hi Roman,
do you have a short introduction on how to get the code to the local HD and compile (this seems to be in the readme, but not how to download the code)? Never worked with bitbucket. I miss the download Zip button from github. I would give it a try tomorrow after work.
Best regards / Saludos Cordiales / Distinti Saluti / Avec mes meilleures salutations / 心想事成,万事如意 / Mit freundlichem Gruß
Matthias Burkhardt
Gesendet mit Ubuntu 16.04 "Xenial Xerus"
-
Are there any errors reported while you try plotting? The 650C sometimes does nothing, but if all is set the right way this beast plots, not in best quality but so what, we only need to see some kind of line to cut the paper. But if the parameters are set wrong (i.e. Monocolor in the driver) nothing happens. The paper format has to be the right one and color mode has to be set.
If someone tells me how to get the code to hd, I will try to build and install the patched version.
Have to relearn it, long ago since I compiled something last time. At least 8 years...
-
repo owner -
reporter Hi
Same error message. Not working Only difference is that it goes away with hitting 2 times OK, when the previous version the error message keep coming.
By the way in this version the Measurement Table edit works.
--Timo
-
repo owner Okay, thanks.
-
reporter Hi
I try to get the Valentina compiled in my MAC, but as usual it will take several iterations to get everything in place.
It's been a while since I was doing this kind of work and the tools have changed. It would be nice to have a working compiler environment for the MAC version.
Dou you have a ideas of what should be corrected for these error messages ?
:-1: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later) :-1: error: [obj/tape/c++.pch] Error 1
I have OS X 10.11.5 and latest Xcode
--Timo
-
repo owner Which branch you try to compile?
-
reporter Hi
I took
hg clone https://dismine@bitbucket.org/dismine/valentina
--Timo
-
repo owner Find which branch do you use.
hg branch
-
reporter timo$ hg branch default
-
repo owner Run
hg update develop
-
reporter Hi
YES, I got it compiled. Now I can be a MAC tester.
--Timo
-
repo owner Awesome, wait little bit. I have an idea how to fix printing.
-
repo owner Right now i am writing a page in Wiki about building project. https://wiki.valentinaproject.org/wiki/Hacking:Building
-
reporter Hi
That looks good.
Maybe there could be something about configuring Qt. I have been looking how to configure the QT version control for Mercurial.
--Timo
-
repo owner If you know what to add you can do it yourself, it is Wiki after all. It should be open for editing.
-
reporter I will. Thanks
-
repo owner Try new patch. Don't forget to pull commit from repository.
-
reporter Now I can print. However new challenge.
When I select 24" roll, the dimensions are width 60,96 cm and length 866,99 cm. Everything looks OK on screen, but the print out is 1/3 of the actual size and the printed paper is 60*866 cm
Scaling is not selected.
Is the place to see actual size of the document?
Attached video
-
reporter - attached Printing.mp4
-
repo owner Everything looks OK on screen, but the print out is 1/3 of the actual size and the printed paper is 60*866 cm
Sorry, i can't understand what is wrong. Do you get an image that smaller than original?
Why do you selected to ignore printer fields?
-
reporter I have printed this shirt via PDF and dimensions are correct on the paper.
With this direct printing all lines are 1/3 of the original. So length of the shirt is 89 cm is 30 cm on the paper. I don't understand what changes the scale.
-
reporter - attached MaleShirtBlock_print_pdf.pdf
- attached MaleShirtBlock_testi.pdf
Here are 2 files. The testi file is the pdf export and print_pdf is through the printer driver (save as pdf)
-
reporter I tested the print->pdf with HP4000 driver with same results. I think the information sent to printer is some how different than the saved pdf.
-
repo owner Timo, try again.
-
Ok, managed to build the package. make didn't work, but the good old dpkg-buildpackage did its job like a charm. Said it build 0.4.4, but now 0.5.0.1200a is installed. Hopefully with the patches. Unfortunately, printing does not work. Job is completed (no error message from Valentina or system) but no printout. Ubuntu 16.04
-
The Problem seems to be somwhere else:
D [02/Jun/2016:20:48:49 +0200] [Job 68] PID 5141 (/usr/lib/cups/filter/foomatic-rip) stopped with status 9. D [02/Jun/2016:20:48:49 +0200] [Job 68] Hint: Try setting the LogLevel to "debug" to find out more.
-
repo owner Unfortunately this not tell me much. Do you able to print with other applications?
-
reporter - attached MaleShirtBlock_printed_pdf.pdf
- attached MaleShirtBlock_saved_pdf.pdf
Here are saved pdf and printed pdf Now the scale is correct. The printed version is not complete. There is little missing in the end.
-
PDF printing out of Evince is working. So if a PDF is made first and the PDF is printed it works (with certain printing parameters). Direct printing from Valentina did not work up to now. Maybe the paper format is the problem, not sure.
-
repo owner The printed version is not complete. There is little missing in the end.
I see i will try another way.
-
repo owner Timo, can you try print to tiled pdf?
-
repo owner Maybe the paper format is the problem, not sure.
I also don't know. Do you have any Qt based application you can check? What OS do you use?
-
reporter - attached MaleShirtBlock_printed_tiled_pdf.pdf
The tiled print is not very informative, because it is just one A4 page. If I use bigger page, it's like normal print. The MAC pdf print is just a save feature in the printer dialog. It is not printing the document trough a PDF printer like Windows and Linux
-
repo owner The tiled print is not very informative, because it is just one A4 page.
What?
-
repo owner Okay, i think i know what is wrong. An image is too big for QImage class. Tomorrow i will busy, so i will return to this bug as soon as possible.
-
reporter Great. I'll wait
-
reporter I tried by leaving one piece away (the short sleeve) and everything printed OK. I looks a size issue
-
repo owner Good. I see a way to make printing without QImage. But it will need some code redesign.
-
reporter - attached MaleShirtBlock_OK.pdf
- attached MaleShirtBlock_Scale_Wrong.pdf
I wanted to print just few small pieces, but the printing went wild
Here are 2 saved pdf's with equal settings. Paper size is 60.96*100 cm. The only difference is that in the OK version, there is also a sleeve. In the scale_wrong version are just the small pieces. The scale and paper orientation are weird in the pdf. I have also printed both versions on the paper and the result is the same as in the pdf.
-
repo owner Timo, thank you for your help. Don't worry i see your posts, but i still busy and can't begin working with this bug.
-
repo owner - assigned issue to
- changed component to Layout mode
- changed milestone to v0.5.0
-
repo owner Issue
#500was marked as a duplicate of this issue. -
repo owner Redesign printing system. ref
#494. Printing is not working.Made complete redesign of printing code. Now the code check printer's dpi and calculate scale factor. Instead of printing with QImage buffer the code print directly on printer. Help avoid limitations of QImage class.
Also removed menu option "Save as PDF". The option duplicate option "Export As" and also mislead a user about purpose of option "Print preview".
→ <<cset 148506c27c6d>>
-
repo owner Can someone test the last changes?
-
reporter I tested with 2,5 m long print. Worked very well. No problems.
-
repo owner Good news. Did you test scale factor?
-
reporter No I didn't but it work better than the previous version. It paginating and handling the paper size correctly.
I will have more test, when I have real patterns to print. The roll is just 30 m, so I don't like waist too much.
So far it works fine.
-
repo owner Okay, i will wait more results.
-
repo owner - changed status to resolved
Fixed issue
#494. Printing is not working.→ <<cset 8bb1ab7575e8>>
-
repo owner Fixed issue
#494. Printing is not working. (grafted from 8bb1ab7575e8e04d0feb91c506facae80d22e4d8)→ <<cset 9985b4064b33>>
-
repo owner - removed milestone
Removing milestone: v0.5.0 (automated comment)
-
repo owner - removed version
Removing version: 0.5.0 (automated comment)
- Log in to comment
I can confirm this, also not working on Ubuntu with HP Designjet 650C. Do you need any information on this ?