Printing from Linux/mono

Printing from Linux/mono - Cannot print - Сообщения

#1 Опубликовано: 31.01.2017 14:37:48
leopold

leopold

0 сообщений из 12 понравились пользователям.

Группа: 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 Опубликовано: 31.01.2017 15:15:57
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
leopold 31.01.2017 15:19:00
#3 Опубликовано: 31.01.2017 15:22:57
leopold

leopold

0 сообщений из 12 понравились пользователям.

Группа: 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 Опубликовано: 31.01.2017 16:15:31
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 31.01.2017 16:38:49
leopold

leopold

0 сообщений из 12 понравились пользователям.

Группа: 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 Опубликовано: 31.01.2017 16:42:11
leopold

leopold

0 сообщений из 12 понравились пользователям.

Группа: User

Martin I alredy found it by reading your docu!

Many thanks!
#7 Опубликовано: 16.10.2020 17:07:09
Anders or Eric

Anders or Eric

4 сообщений из 40 понравились пользователям.

Группа: 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.
Файл не найден.Файл не найден.

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 Опубликовано: 16.10.2020 18:22:05
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 Опубликовано: 17.10.2020 05:40:02
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

I will check it today.
#10 Опубликовано: 18.10.2020 04:23:33
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3734 понравились пользователям.

Группа: 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 Опубликовано: 18.10.2020 10:50:37
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 35 раз(а).
bombe_en2_pdfexport.pdf (122 КиБ) скачан 35 раз(а).
**
example_copied into old smath file.sm (4 КиБ) скачан 28 раз(а).
Untitled__PDF-job_59.pdf (35 КиБ) скачан 30 раз(а).
**
example_written to new file.sm (4 КиБ) скачан 27 раз(а).
Untitled__PDF-job_61.pdf (1 КиБ) скачан 24 раз(а).
**
viscosity_copied into old smath file.sm (70 КиБ) скачан 25 раз(а).
Untitled__PDF-job_60.pdf (106 КиБ) скачан 29 раз(а).
**
viscosity_written to new file.sm (70 КиБ) скачан 25 раз(а).
Untitled__PDF-job_62.pdf (1 КиБ) скачан 27 раз(а).
#12 Опубликовано: 18.10.2020 14:13:20
Anders or Eric

Anders or Eric

4 сообщений из 40 понравились пользователям.

Группа: 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 Опубликовано: 18.10.2020 19:17:19
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 28 раз(а).
#14 Опубликовано: 04.11.2020 10:26:28
Yoy

Yoy

0 сообщений из 2 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений