Background image - PDF document

Background image - PDF document - Adding support for PDF document as background image - Messages

#1 Posted: 1/11/2015 12:34:46 PM
Guy Payeur

Guy Payeur

2 likes in 21 posts.

Group: 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 users liked this post
ioan92 1/11/2015 2:10:00 PM
#2 Posted: 1/12/2015 4:40:54 PM
brotjob

brotjob

7 likes in 71 posts.

Group: 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 Posted: 1/12/2015 5:00:20 PM
Guy Payeur

Guy Payeur

2 likes in 21 posts.

Group: 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 Posted: 1/12/2015 5:04:56 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: 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 Posted: 1/12/2015 5:32:40 PM
Guy Payeur

Guy Payeur

2 likes in 21 posts.

Group: 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 Posted: 1/12/2015 7:36:51 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: 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 Posted: 1/13/2015 11:23:22 PM
Guy Payeur

Guy Payeur

2 likes in 21 posts.

Group: 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 Posted: 11/15/2019 1:23:49 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 11/15/2019 10:59:12 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 11/15/2019 11:12:45 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 Posted: 11/16/2019 10:59:15 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Elsid_1.sm (2 KiB) downloaded 70 time(s).
Elsid_2.sm (53 KiB) downloaded 63 time(s).
#12 Posted: 11/16/2019 1:14:03 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 63 time(s).
#13 Posted: 11/17/2019 2:33:13 AM
CBG

CBG

77 likes in 312 posts.

Group: 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 MiB) downloaded 67 time(s).

Best Regards

Carlos
2 users liked this post
frapuano 11/17/2019 9:04:00 AM, ElSid 11/18/2019 11:57:00 AM
#14 Posted: 11/17/2019 10:31:20 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 11/17/2019 7:18:09 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 68 time(s).
#16 Posted: 11/18/2019 12:02:24 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: 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 MiB) downloaded 67 time(s).

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 Posted: 11/18/2019 4:37:44 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 71 time(s).
#18 Posted: 11/19/2019 12:19:10 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

...what else about this thread ?

Template YellowCorn.sm (2 KiB) downloaded 70 time(s).
#19 Posted: 11/19/2019 5:12:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

...what else about this thread ?


Individual translucent per page.

Template Background Multiple.sm (14 KiB) downloaded 75 time(s).
  • New Posts New Posts
  • No New Posts No New Posts