Printing from Linux/mono

Printing from Linux/mono - Cannot print - Poruke

#1 Objavljeno: 31. 1. 2017. 14:37:48
leopold

leopold

0 svidjanja u 12 postova.

Grupa: User

Hi, first of all let me thank you for this great program.
I use it with Windows and Linux. (And I would really like to use it native on my Mac).

The only drawback in Linux is, its impossible to print for me. Neither the system printer nor the
pdf-subsystem work. Is anybody out, wh has any hint for me?

Thanks in advance
Leopold
#2 Objavljeno: 31. 1. 2017. 15:15:57
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Did you try File> Save as> File format: PDF?

This works for me in a virtual linux box under Win 7

You need the pdf files plugin.

If you use the portable distribution (link in signature), many plugins are pre-installed (the maxima plugin, however, does not work under linux)

pdfexport.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
leopold 31. 1. 2017. 15:19:00
#3 Objavljeno: 31. 1. 2017. 15:22:57
leopold

leopold

0 svidjanja u 12 postova.

Grupa: User

Martin many thanks,

but printing via Windows weather in a real or in a virtual machine is not a problem for me. This works flawlessly. Also with a "real" printer.
My question targeted the Linux version mit mono. And within this version it is not possible to save the file as a *.pdf.
And also printing to a real printer does not work for me.

Greetings from Austria
Leopold
#4 Objavljeno: 31. 1. 2017. 16:15:31
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Wrote

Martin many thanks,

but printing via Windows weather in a real or in a virtual machine is not a problem for me. This works flawlessly. Also with a "real" printer.
My question targeted the Linux version mit mono. And within this version it is not possible to save the file as a *.pdf.
And also printing to a real printer does not work for me.

Greetings from Austria
Leopold



Actually, the VM runs ubuntu and SMath is executed with mono in the screenshot. The displayed pdf is generated by save as under linux. As I said, you need to install the pdffiles plugin by Andrey Ivashov.
I believe that this is not affected by whether linux is run on a virtual or physical machine.

BTW, this is also advisable unter windows, as it avoids the usual font size problems when printing directly (depending on dpi settings the region scaling is a bit unreliable.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 Objavljeno: 31. 1. 2017. 16:38:49
leopold

leopold

0 svidjanja u 12 postova.

Grupa: User

Hello Martin, sorry!
Ich did not understand you correctly.
I tried to enable the pdf-extension, but I could not find it in the extension-manager.
So I assume I have to download this extension and install it by myself. Never tried this. Are there any hints?

Thanks in advance
Leopold
#6 Objavljeno: 31. 1. 2017. 16:42:11
leopold

leopold

0 svidjanja u 12 postova.

Grupa: User

Martin I alredy found it by reading your docu!

Many thanks!
#7 Objavljeno: 16. 10. 2020. 17:07:09
Anders or Eric

Anders or Eric

4 svidjanja u 40 postova.

Grupa: User

Does anyone currently using the Linux Mono version have a workable method for printing? Nothing I've found so far is satisfactory.

Here are images of a page in SMath compared to the printed results- the SMath file is neatly formatted, but the printed version is badly hosed up. It seems like some things are being scaled larger than they should be.
Fajl nije pronađen.Fajl nije pronađen.

I've tried using the PDF Files add-on, but other than headers and footers the pages are blank. The headers and footers do look correct in that case though.

Saving as an image looks good, but that only gives a long strip of the entire file rather than individual pages, and does not include page headers and footers.
#8 Objavljeno: 16. 10. 2020. 18:22:05
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Same here. Installed pdf export, cups/cups-pdf, etc. Either wrong alignment and font issues or blank files.
Only svg export works, sort of. Although equal signs or some other things are corrupted on it too.
Trying to find a solution for this about a week.

Regards
#9 Objavljeno: 17. 10. 2020. 05:40:02
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: Super Administrator

I will check it today.
#10 Objavljeno: 18. 10. 2020. 04:23:33
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: Super Administrator

Wrote

I've tried using the PDF Files add-on, but other than headers and footers the pages are blank. The headers and footers do look correct in that case though.


Wrote

Same here. Installed pdf export, cups/cups-pdf, etc. Either wrong alignment and font issues or blank files.



Please try out this version: https://en.smath.com/file/LTzgd

I've installed Ubuntu 20 and after several hours of debugging discovered a bug in Mono which was a reason why you had header/footer visible only when saving to PDF. Found a workaround, so you can test if it works for you.
Please let me know about results.
#11 Objavljeno: 18. 10. 2020. 10:50:37
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Please try out this version: https://en.smath.com/file/LTzgd

I've installed Ubuntu 20 and after several hours of debugging discovered a bug in Mono which was a reason why you had header/footer visible only when saving to PDF. Found a workaround, so you can test if it works for you.
Please let me know about results.


Out of this topic, as I mentioned before bold and italic font issue remains.
PDF export works well but not "scalable" like genuine pdf print, after all pages is converted to images.
It is usable though, well done Andrey, thanks.

+ PDF Export totally works; (nicely done)
+ Only header-footer printed issues resolved;
+ Linux Cups-Pdf printing issues remain;
- Font size;
- Alignment;
- Images are sometimes half, not sure why;
- Tables are empty (can be related to font size);
+ There is an odd behaviour on printing with cups also;
- If you create a new file and do some calculation and try to print it, it won't. Blank pdf file.
- If you edit an old file, clear it, put same calculation into it (either write from scratch or copy into it) it will print.
- Totally identical files gives this bug too. I have edited example file with notepad to make them same except id's. Bug remains.

Here I am attaching all experimentation files.
Regards

bombe_en2_cupspdf.pdf (88,48 KiB) preuzeto 861 put(ova).
bombe_en2_pdfexport.pdf (122,61 KiB) preuzeto 880 put(ova).
**
example_copied into old smath file.sm (4,49 KiB) preuzeto 1600 put(ova).
Untitled__PDF-job_59.pdf (35,1 KiB) preuzeto 788 put(ova).
**
example_written to new file.sm (4,49 KiB) preuzeto 1537 put(ova).
Untitled__PDF-job_61.pdf (1,06 KiB) preuzeto 825 put(ova).
**
viscosity_copied into old smath file.sm (70,94 KiB) preuzeto 1627 put(ova).
Untitled__PDF-job_60.pdf (106,16 KiB) preuzeto 896 put(ova).
**
viscosity_written to new file.sm (70,93 KiB) preuzeto 1591 put(ova).
Untitled__PDF-job_62.pdf (1,06 KiB) preuzeto 866 put(ova).
#12 Objavljeno: 18. 10. 2020. 14:13:20
Anders or Eric

Anders or Eric

4 svidjanja u 40 postova.

Grupa: User

Andrey, this is a huge improvement. Until now my solution was to save as an image and manually chop it into page-sized chunks. This is so much less work, and gives the headers as well!
#13 Objavljeno: 18. 10. 2020. 19:17:19
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Just comments:
1. What's that (\0 0B0\C) on my SS 6179
2. Triple point of water is 0.01 °C ... not 0 !
3. Engineering works "cP"

Inst_Viscosity Water.sm (43,35 KiB) preuzeto 1553 put(ova).
#14 Objavljeno: 4. 11. 2020. 10:26:28
Yoy

Yoy

0 svidjanja u 2 postova.

Grupa: User

Yeah like overload did comment before, same here but with ubuntu 20.10 note at cups-pdf is now called "printer-driver-cups-pdf" did finish with smathstudio crashing while i did try preview print.
  • Novi postovi
  • Nema novih postova