Background image - PDF document

Background image - PDF document - Adding support for PDF document as background image - Сообщения

#1 Опубликовано: 11.01.2015 12:34:46
Guy Payeur

Guy Payeur

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

Группа: User

As an Electrical Engineer in Canada, I am using SMath since many years for all kind of personnal work. One feature that would increase the usefullness of SMath for me is to be able to select a PDF file as a Background image. Of course it would be great to have a SMath page created per each PDF pages.

The goal is to "SMath"[verb] selected formulas and graphs on top of the PDF document to experiment with results and to master its contents.

If I push it a bit, there are great apps that can read a formula from an image. So, it would be possible to select an area of the PDF document to instantly capture an image formula into a "SMath" formula.

Keep up the great work!!!
1 пользователям понравился этот пост
ioan92 11.01.2015 14:10:00
#2 Опубликовано: 12.01.2015 16:40:54
brotjob

brotjob

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

Группа: User

Wrote

One feature that would increase the usefullness of SMath for me is to be able to select a PDF file as a Background image.



I think this is not a useful feature in the eyes of the developer. I filed this in the Issue Tracker system as SS-1237 but it got closed without being implemented.

#3 Опубликовано: 12.01.2015 17:00:20
Guy Payeur

Guy Payeur

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

Группа: User

Wrote

I think this is not a useful feature in the eyes of the developer.



This is easily understandable. After all, this is a project with multiple very interesting branches of development for developers.

I will continue to add manually selected "PDF to Bitmap" Background images.

Great wishes for 2015 !!!
#4 Опубликовано: 12.01.2015 17:04:56
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

As an Electrical Engineer in Canada, I am using SMath since many years for all kind of personnal work. One feature that would increase the usefullness of SMath for me is to be able to select a PDF file as a Background image. Of course it would be great to have a SMath page created per each PDF pages.

The goal is to "SMath"[verb] selected formulas and graphs on top of the PDF document to experiment with results and to master its contents.

If I push it a bit, there are great apps that can read a formula from an image. So, it would be possible to select an area of the PDF document to instantly capture an image formula into a "SMath" formula.

Keep up the great work!!!



I'm pretty sure this could be done quite easily with a plugin, because there are existing PDF-plugins and in the SMath Core documentation I've found a PagesOptions.SetBackground method:

public void SetBackground(
	Bitmap bmp,
	int pageNum,
	BackgroundImageSize size
)


Wrote

Wrote

One feature that would increase the usefullness of SMath for me is to be able to select a PDF file as a Background image.



I think this is not a useful feature in the eyes of the developer. I filed this in the Issue Tracker system as SS-1237 but it got closed without being implemented.


seems to me a different thing... here is asked to use a pdf as background, page-by-page; the BTS request was to use an image inside the header/footer, with placeholders or something similar.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Опубликовано: 12.01.2015 17:32:40
Guy Payeur

Guy Payeur

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

Группа: User

Wrote

I'm pretty sure this could be done quite easily with a plugin



I am glad to here that.

Wrote

seems to me a different thing... here is asked to used a pdf as background, page-by-page; the BTS request was to use an image inside the header/footer, with placeholders or something similar.



When I add a background image, SMath ask if you want it applied to current page or all pages. One way to add a logo or any header/footer could be to design it as a Bitmap (full page) and add it as a background image applied to all pages.

#6 Опубликовано: 12.01.2015 19:36:51
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

When I add a background image, SMath ask if you want it applied to current page or all pages. One way to add a logo or any header/footer could be to design it as a Bitmap (full page) and add it as a background image applied to all pages.



Yep, this is exactly what was intended by the developper in his answer (maybe better explained in your way).


---

edit not easy as expected... anyway I've found a possible way (here for further reference)

GhostscriptSharp wrapper for Ghostscript
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Опубликовано: 13.01.2015 23:23:22
Guy Payeur

Guy Payeur

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

Группа: User

Wrote


edit not easy as expected... anyway I've found a possible way (here for further reference)

GhostscriptSharp wrapper for Ghostscript



Well, I guess there is still hopes!
I should try to get some info on plugins...

#8 Опубликовано: 15.11.2019 13:23:49
Ruben Sidranski

Ruben Sidranski

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

Группа: User

I would like to suggest making the "background image" to function like IRFANVIEW "overlay/watermark". I need to make some backgrounds translucent and I cannot find how to do this natively in SMATH. Hoping the IRFAN code is available since it's free too
#9 Опубликовано: 15.11.2019 22:59:12
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I would like to suggest making the "background image" to function like IRFANVIEW "overlay/watermark".I need to make some backgrounds translucent and I cannot find how to do this natively in SMATH.


1. Wingrab Capture an Smath work sheet w/o grid
2. SelectTool the all part of the work sheet
3. Save as *.PNG
........from Smath
4. Insert background [browse from file]
5. fit [it fits both directions]
Now you have a translucent background,
what's the use whereas you are back to native Smath
....... otherwise
insert an RGB image from file, fit to stretch.
If your original has pixels X,Y proportional to
an Smath native pixels X,Y ... the image background
will be nicely zoomed to the full work sheet size
at highest quality similar to IrfanView HD TV quality.
On the other hand, you can't use background to insert
a logo image. For that, create a cartouche.

#10 Опубликовано: 15.11.2019 23:12:45
Ruben Sidranski

Ruben Sidranski

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

Группа: User

I need to make the image "translucent". I'd like the background feature to allow for making the image translucent. This is doable in Libre/Open Office, IrfanView, etc. They are working on the field and background features, so this would be a nice upgrade.
#11 Опубликовано: 16.11.2019 10:59:15
Jean Giraud

Jean Giraud

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

Группа: User

Elsid_1.sm (2 КиБ) скачан 41 раз(а).
Elsid_2.sm (53 КиБ) скачан 37 раз(а).
#12 Опубликовано: 16.11.2019 13:14:03
Jean Giraud

Jean Giraud

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

Группа: User

Like explained before, inserting background is translucent,
i.e: like if it was not here. Then immaterial wrt Smath stuff.
Please let us know if the attached has gray [228, 228, 175]
background ... did the transmission preserved the background ?

Inst_Z Transform.sm (90 КиБ) скачан 34 раз(а).
#13 Опубликовано: 17.11.2019 02:33:13
CBG

CBG

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

Группа: User

Hello:

I think you have to use an image manipulation program
like Gimp or Krita (both free).
In the example published by Jean, I copied the image to Gimp, lower the opacity to 38% and save the image in PNG format.

I have inserted the saved image as a background.

Traslucit_2.png

Inst_Z Transform_Jean.sm (2 МиБ) скачан 35 раз(а).

Best Regards

Carlos
2 пользователям понравился этот пост
frapuano 17.11.2019 09:04:00, ElSid 18.11.2019 11:57:00
#14 Опубликовано: 17.11.2019 10:31:20
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I think you have to use an image manipulation program
like Gimp or Krita (both free).
In the example published by Jean, I copied the image to Gimp, lower the opacity to 38% and save the image in PNG format.
I have inserted the saved image as a background.


Thanks Carlos, for the fade feature.
That will surely make Elsid more happy.
A nice additional option would be similar to Mathcad:
ordinary background adjustable RGB [Yellow corn, soft gray ...]
Very useful to organize the regions, superb for publishing.
Cheers ... Jean
#15 Опубликовано: 17.11.2019 19:18:09
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I would like to suggest making the "background image" to function like IRFANVIEW "overlay/watermark".I need to make some backgrounds translucent and I cannot find how to do this natively in SMATH.Hoping the IRFAN code is available since it's free too


Plain background is explained here.
You can have as many personalized background, even different for
each page of the Smath document.
Supplementary detail wrt image:
The native Smath sheet is in close ratio 1 x 1.29 [width*height].
Thus: if you want best image as background, capture in rectangular
ratio close to 1* ~ 1.3. Stretching will preserve this aspect ratio.
WinGrab has the rectangular ratio in pixels.


Inst_Z Transform Plain Background.sm (17 КиБ) скачан 39 раз(а).
#16 Опубликовано: 18.11.2019 12:02:24
Ruben Sidranski

Ruben Sidranski

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

Группа: User

Wrote

Hello:

I think you have to use an image manipulation program
like Gimp or Krita (both free).
In the example published by Jean, I copied the image to Gimp, lower the opacity to 38% and save the image in PNG format.

I have inserted the saved image as a background.

Traslucit_2.png

Inst_Z Transform_Jean.sm (2 МиБ) скачан 35 раз(а).

Best Regards

Carlos


Yes! I was looking at "muting" the background image as it was overwhelming the "calculation". IrfanView and OpenOffice call it "translucent" and you called it "opacity"

Jean,
I know you are not a believer of this, but it's for a presentation and having their "logo" is required. Now to PDF and add this calculation to my slides.
#17 Опубликовано: 18.11.2019 16:37:44
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Yes!I was looking at "muting" the background image as it was overwhelming the "calculation".IrfanView and OpenOffice call it "translucent" and you called it "opacity"

Jean,
I know you are not a believer of this, but it's for a presentation and having their "logo" is required.Now to PDF and add this calculation to my slides.


Translucent = opacity = Gamma correction are synonymous.
The technical term is Gamma correction [Irfanview, Wingrab, Mathcad].
1. You can have the translucent background in 16777216 colors.
2. You can have the native logo wherever in that translucent work sheet.
3. For convenience: you can manipulate the logo color scheme.
4. Once the document is complete as you wish, make *.PDF
The attached PDF is 1/1 Smath document ... Please: comment.
Cheers ... Jean.

Cadarache.pdf (122 КиБ) скачан 37 раз(а).
#18 Опубликовано: 19.11.2019 00:19:10
Jean Giraud

Jean Giraud

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

Группа: User

...what else about this thread ?

Template YellowCorn.sm (2 КиБ) скачан 34 раз(а).
#19 Опубликовано: 19.11.2019 17:12:22
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

...what else about this thread ?


Individual translucent per page.

Template Background Multiple.sm (14 КиБ) скачан 43 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений