Printing from Linux/mono

Printing from Linux/mono - Cannot print - Messages

#1 Posted: 1/31/2017 2:37:48 PM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/31/2017 3:15:57 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
leopold 1/31/2017 3:19:00 PM
#3 Posted: 1/31/2017 3:22:57 PM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/31/2017 4:15:31 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 1/31/2017 4:38:49 PM
leopold

leopold

0 likes in 12 posts.

Group: 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 Posted: 1/31/2017 4:42:11 PM
leopold

leopold

0 likes in 12 posts.

Group: User

Martin I alredy found it by reading your docu!

Many thanks!
#7 Posted: 10/16/2020 5:07:09 PM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: 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.
File not found.File not found.

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 Posted: 10/16/2020 6:22:05 PM
overlord

overlord

552 likes in 1332 posts.

Group: 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 Posted: 10/17/2020 5:40:02 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

I will check it today.
#10 Posted: 10/18/2020 4:23:33 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: 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 Posted: 10/18/2020 10:50:37 AM
overlord

overlord

552 likes in 1332 posts.

Group: 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 KiB) downloaded 37 time(s).
bombe_en2_pdfexport.pdf (122 KiB) downloaded 36 time(s).
**
example_copied into old smath file.sm (4 KiB) downloaded 28 time(s).
Untitled__PDF-job_59.pdf (35 KiB) downloaded 31 time(s).
**
example_written to new file.sm (4 KiB) downloaded 28 time(s).
Untitled__PDF-job_61.pdf (1 KiB) downloaded 25 time(s).
**
viscosity_copied into old smath file.sm (70 KiB) downloaded 25 time(s).
Untitled__PDF-job_60.pdf (106 KiB) downloaded 29 time(s).
**
viscosity_written to new file.sm (70 KiB) downloaded 26 time(s).
Untitled__PDF-job_62.pdf (1 KiB) downloaded 28 time(s).
#12 Posted: 10/18/2020 2:13:20 PM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: 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 Posted: 10/18/2020 7:17:19 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 29 time(s).
#14 Posted: 11/4/2020 10:26:28 AM
Yoy

Yoy

0 likes in 2 posts.

Group: 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.
  • New Posts New Posts
  • No New Posts No New Posts