Code to include a water mark in Live cycle
HI ,
My requirement is to include a water mark on a digital signature. The water marks says "Click Here to Sign". and once the user clicks on the digital signature the water mark should disappear. Can any one help me in writing a code for this.
Thanks,
Bhaskar.
Hi Bhaskar,
Which version of LiveCycle are you using?
Do you want to apply digital signature on XFA form created using LiveCycle Designer or Acroform created using Acrobat?
If you are trying to apply digital signature on XFA based form
You can create a text field with "Click Here to Sign" and overlay digital signature field on it and use Appearance Options of Digital Signature service APIs to set opacity of logo PDF to 100% to hide the text "Click Here to Sign" when user applies the signature
--Santosh
http://about.me/nskumar
Similar Messages
-
Pdf stamping (water mark) functionality is not working in sharepoint 2010
Hi
I have developed custom handler(.dll) for pdf file stamping functionality using Ihttphandler in VS2010 with help of
iTextSharp. deployed the hanlder in GAC and referred hanlder in handler section of the web.config file one of the
Sharepoitin 2010 site. the stamping functionality is working fine when I am using <Mapping Key="pdf" Value="pdf16.gif"
OpenControl = "Malag.OpenDocuments"/> mapping key for PDFs in DOCICON.XML. after doing all this settings when open any pdf
from sharepoint site it opens in the browser with stamping (water mark) on each page of pdf file. Now i want open the file
in Adobe Reader X with check out & check in options. i have changed mapping key for PDFs in DOCICON.XML file to <Mapping
Key="pdf" Value="pdf16.gif" OpenControl = "PdfFile.OpenDocuments"/>. After changing when click on pdf file in site it opens
adobe reader X prompting Chewck out & open etc.. option, if i select Open option the PDF file is not opening & showing
message "There was an error opening this document. File open failed". Please let me know solution how to solve this issue.
Here is my handler code..
using System.IO;
using System.Web;
using Microsoft.SharePoint;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Configuration;
using System;
using Microsoft.SharePoint.Administration;
namespace WSPPDFStamping
class WSPPDFStampingHtppHandler:IHttpHandler
public bool IsReusable
get
return false;
public void ProcessRequest(HttpContext context)
var siteId = SPContext.Current.Site.ID;
var sec = new SPSecurity.CodeToRunElevated(delegate()
using (var site = new SPSite(siteId))
using (var web = site.OpenWeb())
SPFile file = SPContext.Current.Web.GetFile(context.Request.Url.ToString());
string RequestedURL = context.Request.Url.ToString();
// string connStringUrl = "";
string connStringUrl = "";;
bool isAdd = true;
byte[] content = file.OpenBinary();
SPUser currentUser = SPContext.Current.Web.CurrentUser;
string siteWebAppRoot = "/" + SPContext.Current.Site.WebApplication.DisplayName;
System.Configuration.Configuration rootWebConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(siteWebAppRoot);
System.Configuration.ConnectionStringSettings connString;
if (0 < rootWebConfig.ConnectionStrings.ConnectionStrings.Count)
//connString =
// rootWebConfig.ConnectionStrings.ConnectionStrings["PDFStampingURL"];
//if (null != connString)
// connStringUrl = connString.ConnectionString.ToString();
for (int i = 0; i < rootWebConfig.ConnectionStrings.ConnectionStrings.Count; i++)
string connStr = "PDFStampingURL" + (i + 1);
connString =
rootWebConfig.ConnectionStrings.ConnectionStrings[connStr];
if (null != connString)
connStringUrl = connString.ConnectionString.ToString();
if (RequestedURL.Contains(connStringUrl))
isAdd = true;
break;
else
isAdd = false;
//if (!RequestedURL.Contains(connStringUrl))
if (!isAdd)
context.Response.ContentType = "application/pdf";
context.Response.BinaryWrite(content);
// context.Response.AddHeader("content-disposition", "attachment; filename=" + file.Name);
// context.Response.AddHeader("content-disposition", "inline;filename=" + file.Name);
context.Response.End();
isAdd = false;
return;
string watermark = null;
if (currentUser != null)
watermark = "Document downloaded by " + currentUser.Name + " on " + System.DateTime.Now + " PST.";
if (watermark != null)
PdfReader pdfReader = new PdfReader(content);
using (MemoryStream outputStream = new MemoryStream())
PdfStamper pdfStamper = new PdfStamper(pdfReader, outputStream);
BaseFont baseFont = BaseFont.CreateFont(BaseFont.HELVETICA_BOLD, BaseFont.CP1252, false);
for (int pageIndex = 1; pageIndex <= pdfReader.NumberOfPages; pageIndex++)
//Rectangle class in iText represent geometric representation...
//in this case, rectangle object would contain page geometry
iTextSharp.text.Rectangle pageRectangle = pdfReader.GetPageSizeWithRotation(pageIndex);
//PdfContentByte object contains graphics and text content of page returned by PdfStamper
PdfContentByte pdfData = pdfStamper.GetOverContent(pageIndex);
//create font size for watermark
pdfData.SetFontAndSize(BaseFont.CreateFont(BaseFont.HELVETICA_BOLD, BaseFont.CP1252, BaseFont.NOT_EMBEDDED), 8);
//create new graphics state and assign opacity
PdfGState graphicsState = new PdfGState();
graphicsState.FillOpacity = 0.7F;//= 0.4F;
//set graphics state to PdfContentByte
pdfData.SetGState(graphicsState);
//indicates start of writing of text
pdfData.BeginText();
//show text as per position and rotation
pdfData.ShowTextAligned(Element.ALIGN_MIDDLE, watermark, pageRectangle.Width / 4, pageRectangle.Height / 44, 0);
//pdfData.ShowTextAligned(Element.ALIGN_CENTER, "For Internal Use Only", pageRectangle.Width / 2, pageRectangle.Height / 2, 45);
//call endText to invalid font set
pdfData.EndText();
//Top text
PdfGState graphicsStateTop = new PdfGState();
graphicsStateTop.FillOpacity = 0.005F;//= 0.4F;
//set graphics state to PdfContentByte
pdfData.SetGState(graphicsStateTop);
pdfData.BeginText();
//pdfData.ShowTextAlignedKerned(Element.ALIGN_LEFT, "TEXT Left", 150, 628, 0);
pdfData.ShowTextAligned(Element.ALIGN_CENTER, watermark, pageRectangle.Width / 2, pageRectangle.Height - 13, 0);
//call endText to invalid font set
pdfData.EndText();
//Set 45 degree water mark
PdfGState graphicsState45 = new PdfGState();
pdfData.SetFontAndSize(baseFont, 38);
graphicsState45.FillOpacity = 0.07F;//= 0.4F;
//set graphics state to PdfContentByte
pdfData.SetGState(graphicsState45);
pdfData.BeginText();
//show text as per position and rotation
pdfData.ShowTextAligned(Element.ALIGN_CENTER, "Registered For Internal Use Only", pageRectangle.Width / 2, pageRectangle.Height / 2, 45);
//pdfData.ShowTextAlignedKerned(Element.ALIGN_LEFT, "TEXT Left", 150, 628, 0);
//call endText to invalid font set
pdfData.EndText();
pdfStamper.Close();
content = outputStream.ToArray();
context.Response.ContentType = "application/pdf";
context.Response.BinaryWrite(content);
// context.Response.AddHeader("content-disposition", "attachment; filename=" + file.Name);
// context.Response.AddHeader("content-disposition", "inline;filename=" + file.Name);
context.Response.End();
SPSecurity.RunWithElevatedPrivileges(sec);
web.config file of share point site
<handlers>
<add name="PDFWatermark" verb="*" path="*.pdf" preCondition="integratedMode"
type="WSPPDFStamping.WSPPDFStampingHtppHandler, WSPPDFStamping, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=835cc3a26d74a89a" />
</handlers>
thanks in advance.
jampani venkateshwar rao.Time to engage in basic debugging. Alter your script to remove all the extra steps and generate logs as it goes along, then gradually re-enable each part so you can work out where it's bombing out. It doesn't sound like a problem with Reader itself, and as Claudio says we're not here to provide support for non-Adobe software.
-
Add water mark on Adobe Interactive Form
Hello,
We have created a Interactive Form in our Customer that give us the possibility to print pictures dynamically from url.
I am trying to add a water mark to the final printed form, tried to set in Master Page on the layout from Adobe Live Cycle Designer and also from another superposed gif pictures that have transparent area.
On the master Page i can't fin how to set the image as a Water Mark and with the gif option, adobe Live cycle designer
don't admit the possibility to make black image areas as semi transparent.
have anyone fin this ?
thanks:
LuisWatermark is NOT possible in Adobe Forms. The only workaround is to add the image and then set the option as Send to backward to have watermark type effect.
Chintan -
Hi,
I hav ea requireemnt to add water mark in smart form as " SAMPLE" across the page based on particual condition.
Please let me know the steps and code for this.
I checked in the forums...but I dint found relevant.
Please help me out.
Reagrds
Sandeep.Hi Sandeep,
The following idea is quite straightforward:
- load the watermark with SE78
- create a variable in SmartForm which will store the name of the graphic. If you do not want it displayed, you change it to SPACE programatically
- double click on the page, go to background picture and associate the variable as the image name
And it's a wrap.
Let me know if you require further assistance.
Best regards,
George -
Hi Gurus,
In alert log file , i find License high water mark with some number after shutdown immediate command.
What does it signify ?
Is this problem ?
What information can we derive after finding this ?
Thanks & RegardsIt is the number of sessions. A end user may open multiple sessions. A connection pooled applicaion such as a web server based application may open a minimun number of connection pooled sessions such as 20 to 50 at all times even if idle.
What kind of applications do you have using the database.
Did you query v$session to see how many sessions there were?
Ok, so you do not use dbms_scheduler but do you use PQO? If a single user submits a query that runs under PQO then numerous sessions may be created to run the query.
I have seen a single .net applicaiton flood a database with connections. Every time it ran a look it opened a new connection when it was supposed to be using a pooled connection. It took the developers a while but they eventually found where another parameter had to set in the system to get the .net code to function correctly.
What you expect and what you have appear to be different. Looking at v$session should allow you to confirm the information and if the number of sessions is greater than what you expect it should allow you to trace them back to the source.
HTH -- Mark D Powell -- -
Hi,
Is it possible to have a page in BSP with watermark on it? We need to print details of an invoice also on this page.
Currently, invoice details are appearing. But the reuirement now is to have a watermark on the same page.
Any pointers regarding this would be helpful.
Rgds,
Bhargav.just load the water mark image to the mime folder of your BSP and have the following code. (just above htmlb:content).
<style type="text/css">
<!--
BODY
-->
</style>
<htmlb:content design="design2003">
other resources
http://www.buildwebsite4u.com/building/web-page-backgrounds.shtml
http://www.dynamicdrive.com/dynamicindex3/fixback.htm
Regards
Raja -
How do you add a water mark to multiple images within multiple files?
I am having real trouble in trying to add a water mark to multiple images (mixture of jpegs and tiffs) within multiple file.
I have used the Batch processing tool, but this hasn't worked or has been inconvenient, asking me to resave each individual file.
If anyone can help or suggest another way of doing this, that would be great!
Thanks
BeccaAre you using Russell Brown's script for placing watermarks? Also you mentioned, "Within multiple file." Did you mean multiple folders? The batch processor has a check box for applying process to multiple folders. What itsn't working - exactly?
-
How to print arabic text as water mark in XML Publisher
Hi All,
I am working with Arabic reports,which is conversion of RDF Reports to XML Publisher Reports.
I Developed RTF template,here problem is how can i use Arabic text as a water mark in template.
Please provide me suggestions.
Thanks in advance
Regards
Amardo you have arabic text in your report ? is it correct ?
How To Setup XML Publisher To Show Arabic Characters (Doc ID 556995.1)
so you can try
ARABIC Font Shows As ?? Question Marks In Postscript Reports (Doc ID 981174.1)
you can also post SR -
Cannot edit a PDF we created in Adobe Acrobat X1 pro. The form tells use to use Live Cycle to edit. Does the X1 subscription not include Live Cycle? Our earlier versions of Adobe did include Live Cycle
No. You have to purchase LCD separately now.
On Mon, Apr 13, 2015 at 5:23 PM, celestes5673329 <[email protected]> -
How to put water mark in web dynpro abap Adobe forms
Hi
Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
actually I need to print water mark as back ground in gray color.
Points will be rewarded of Helpful answer..!
Regards,
SidramHi,
for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
Besides, there's an Adobe forum where you might get more information for such Adobe questions.
Regards, Heidi -
Explain about high water mark and low watermark
explain about high water mark and low watermark?
biju2012 wrote:
Here are a few links..
http://www.orafaq.com/tuningguide/
Look at Analysing problem SQL > Data Storage Problems > High Water Mark
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:575223085419
I checked both those links, and neither says anything about a "low water mark". One link has a copyright notice of 2003, the other starts with a question about 8.1.6.
Given the nature of the question I think we should be allowed to guess that the OP is probably thinking about the "low high water mark" and "high high water mark" that applies to segments using ASSM (automatic segment space management).
Under ASSM, Oracle doesn't format blocks for use in absolute order, it will pick batches of blocks (typically 16 - unless that's changed fairly recently) in the most recently allocated extent. This means that you can end up with some UNFORMATTED blocks near the start of the extent with some FORMATTED blocks later in the extent.
The "low high watermark" is the last block below which there are no UNFORMATTED blocks; the "high high watermark" is the block above which there are no FORMATTED blocks. Looking at it another way - between the low and high high watermarks you may find both formatted and unformatted blocks, but this condition doesn't exist anywhere else in the segment.
Regards
Jonathan Lewis -
Hi Guys,
please help me in this table high-water mark in sql tuning.
regards
Subuse the dbms_space.unused_space procedure to tell you what you want to know. total_bytes - unused_bytes will tell you used bytes -- your HWM in bytes. total_blocks - unused_blocks will tell you used blocks -- your HWM in blocks.
But this information is not of much use in tuning as it only tell you where in the table allocation your data ends. Beyond the HWM is terra incognito, so far as the optimizer is concerned. -
How to add water mark in already build report
hi experts............
im fresher , i need to add water mark in already build report..please help me to do this.......
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on May 20, 2011 9:25 AMI'm not sure the is a solution in your version. Duncan Mills blogged about a solution here https://blogs.oracle.com/groundside/entry/placeholder_watermarks_with_adf_11 but it's for a later version.
However it might help you getting started.
Timo -
Configure the stamp ,Digital signature and water mark in DMS
Hi...
I want to configure the stamp ,Digital signature and water mark in for my client in DMS.
Stamp:detaiils showing doc type, doc status,who has open, doc no,version,date and time
Digital Sign:with respect to approval (system should ask user name and password while approvig)
Water mark:for the status (Draft/approved)
Can anybody guide me to do this?Please explan in details as i am doing it first time.
In addition to do this what addition system requirement is needed?
Regards,
SandipHi Sandip,
Please refer below links for required details
For Redlining Redlining
Watermark DMS Seal system watermarking solution
Hope this will answer your query.
Regards,
Deepak Kori -
Putting a water mark in the form
Hello all,
My requirement is to have a water mark image in the adobe form.
Kindly let me know the procedure to do this.
Thanks and Regards
RajeshHi Rajesh
You cannot add a PDF watermark to a form created in LiveCycle Designer, unless that form was created with a fixed PDF background or you need to use LiveCycle ES 8.0(but it doesn't support SAP) {Reference. http://blogs.adobe.com/security/2008/01/pdf_watermark_demonstration.html}
I'm not completely sure, but I think the best way you could do is add an image to Master page. To do this you'll need to create the watermark text as in image file.
STEPS:
1. Add image field to master page
2. click on image field and set the image
3. On the "Object" tab for the image field, change the field type to static image.
Regards
Pradeep Goli
Maybe you are looking for
-
Changed date and time and lost reference to proxy files
I had a batch of transcoded proxy files (from a Canon 550d) that had the wrong time on them. I used "Modify > Adjust content created date and time" to shift them by an hour. FCP now reports "Missing Proxy" for all of them. I've checked in the events
-
How to reduce classpath size ??
I have an application in which the classpath size has reached its maximum limit. I start my web logic server using perl scripts and the classpath is defined in that script. I want to add an additional path to my classpath but i am not able to do so .
-
Connecting my western digital drive with airport to use with my idevices
I purchased "my book essiential" i had it reformatted at the apple store to be used by my apple products. Now I have it connected to my "airport extreme base" and I need to establish an access with my book essential using my iPad and my iPhone. At t
-
hi i want to snap the grid in xy graph i am plotting graph using mouse down event now i want to snap grid on mouse down(means if i click any where the point will be entered on nearest grid) regards mazhar Solved! Go to Solution.
-
Compaq Laptop make noise and can't open the windows.. Noise at HardDisk part
Why my sister's Compaq Laptop make noise and can't open the windows.. huhuhu.. the sound come from HardDisk in that laptop.. its sound like the HDD reader scratched the Disc insde.. how can it be?? my sister scold me already couze she wanna use for h