473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Watermarks printing

I use the code at the of this message to add a copyright text ( watermark )
on image printing.
I would like to have a text Opacity at 30%.
On print preview and normal view all is ok , but when I print the image the
copyright text has the background and opacity at 100%. ( so it covers my
image ).

I've tried also with AlphaImageLoader (.copyImg class) but the result is the
same.
So ... how can I print a image with a "watermark" one th background ?
Any ideas ?
Thanks in advance

<head>
<style>

img.diagram{
position:absolute;
top:0;
left:0;
}

..copy{
position:absolute;
top:30;left:30;width:200;height:30;
color:gray;
font-family:Verdana;
font-size:30;
/*filter:alpha(opacity=40);*/

filter:progid:DXImageTransform.Microsoft.BasicImag e(Rotation=0,Mirror=0,Inve
rt=0,XRay=0,Grayscale=0,Opacity=0.30);

}

..copyImg{
position:absolute;
top:70;left:30;width:200;height:30;

filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader(src='copy.png',
sizingMethod='scale');"
}

</style>
<head>
<body>
<img src="imageToProtect.png" class="diagram" >

<div src="copy.png" class="copyImg" ></div>

<div> My copyright ® </div>

</body>
Dec 14 '05 #1
6 8258
"Michele" <mt****@texa.it> wrote:
So ... how can I print a image with a "watermark" one th background ?


Add the watermark to every image with an image editor.

--
Spartanicus
Dec 14 '05 #2
Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically ( on client side ) , without modifing the original images, for
printing only.
"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:kk********************************@news.spart anicus.utvinternet.ie...
"Michele" <mt****@texa.it> wrote:
So ... how can I print a image with a "watermark" one th background ?


Add the watermark to every image with an image editor.

--
Spartanicus

Dec 14 '05 #3
Please do not top post, and remove sigs manually if your method of
posting doesn't do that for you, corrected this once.

"Michele" <mt****@texa.it> wrote:
>So ... how can I print a image with a "watermark" one th background ?
Add the watermark to every image with an image editor.

Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically ( on client side ) , without modifing the original images, for
printing only.


http://homepage.ntlworld.ie/spartanicus/temp.htm

Won't work if a user opens the image separately.

--
Spartanicus
Dec 14 '05 #4
"Michele" <mt****@texa.it> writes:
"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:kk********************************@news.spart anicus.utvinternet.ie...
"Michele" <mt****@texa.it> wrote:
So ... how can I print a image with a "watermark" one th background ?


Add the watermark to every image with an image editor.


Ok ... the problem is that I've to add the watermarks on
the fly , dinamically ( on client side ) , without
modifing the original images, for printing only.


Given that the client can turn off or replace stylesheets,
surely this is pointless?

--
Jón Fairbairn Jo***********@cl.cam.ac.uk
Dec 14 '05 #5
In article <wf************@calligramme.cl.cam.ac.uk>, Jón Fairbairn
<jo***********@cl.cam.ac.uk> wrote:
"Michele" <mt****@texa.it> writes:
"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:kk********************************@news.spart anicus.utvinternet.ie...
"Michele" <mt****@texa.it> wrote:

>So ... how can I print a image with a "watermark" one th background ?

Add the watermark to every image with an image editor.


Ok ... the problem is that I've to add the watermarks on
the fly , dinamically ( on client side ) , without
modifing the original images, for printing only.


Given that the client can turn off or replace stylesheets,
surely this is pointless?


use server-side scripting, like PHP with GD
Dec 15 '05 #6
On 2005-12-14, Michele <mt****@texa.it> wrote:
Ok ... the problem is that I've to add the watermarks on the fly ,
dinamically ( on client side ) , without modifing the original images, for
printing only.


what is the purpose of the watermark?
if you are serving unmarked images people will be able to print them.
(eg by selecting view image, or putting the images URL in the location
field...)

if you are trying to protect your intellectual property you must serve
marked images, this can be done on the fly at the server side

As for hiding the mark in the print preview - what are you hoping to
gain by doing that?

--

Bye.
Jasen
Dec 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
4
by: Suzanka | last post by:
Hello, I have an application written in C# on visual studio .NET. It is a web aplication. The application consists of many different forms, that users occassionaly want to print out for filing....
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
4
by: Michele | last post by:
I use the code at the of this message to add a copyright text ( watermark ) on image printing. I would like to have a text Opacity at 30%. On print preview and normal view all is ok , but when I...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
3
by: madumm | last post by:
Hi all; I want to add watermarks for PDF files. I have found a class called "PdfFileStamp" to do that. Inorder to do that have to import "com.aspose.pdf.kit.PdfFileStamp" for that how can i do...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.