How to change the coordinates of Signature in CoSign Signature SOAP API and place it over some given text (i.e. Sign Here)? - soap

My pdf file will have an area with the text "Sign here". It could be anywhere in the pdf(i.e. the coordinates for that area is not defined) . I would like to add the signature over that given area or text(eg "Sign Here") in my pdf file. In the given code http://developer.arx.com/quick-start/sapi-web-services/#t-helloworld , how can I achieve this?

You need to know which page, and where on the page, the graphical part of the digital signature should be placed.
One way to determine the location dynamically is to add a "Signature Field Locator." In the original PDF you include a special Field Locator text string such as <<<w=100;h=120;n=employee;a=1;>>>
You set the Field Locator text color to be the same as the page's background color so it won't show when the pdf is viewed.
CoSign Signature Local includes methods for locating and using Field Locators to set the position of a graphical signature. See the example program.

Related

Is there a more customizable way to create embedded hyperlinks?

I'm trying to create a generalized function/class that builds embedded hyperlinks. I am using an NSAttributedString with NSAttributedString.Key.link attribute and assigning a URL to the specified range. I can even specify multiple links within the body of text, with specific styles for the text. However the only caveat that I am seeing is that the highlighted state of the links have a grey background color. Is there a way to get rid of this background color, and on top of that assign a specified highlight state color for the link?
I am open to other means of creating the text and links, but I feel like NSAttributedString is the right means.
Again:
the body of text should be able to handle any number of links
each link can contain any number of words
the highlighted state shouldn't have a background color of grey, and be able to accept a specified color for a highlight state
the text should be able to wrap if needed

ePub input fields and email content?

enter image description hereMy church has started using The Church App. Within the app, the user can input information that the app saves. It also gives the option to email that as a PDF to themselves.
In the attached image, the input box was used is in green. The input boxes that can be used are in blue. Can that be created in an ePub?

Wrap text written within user defined area in pdf

We have a requirement where user wants to write some content from the db to selected areas in pdf. We provide this option by asking the user to upload pdf to the system, after drawing rectangular markups within. Later he can define rules as to what content he can write to the defined area. We use iText for all operations like reading coordinates of the drawn markups, writing content to the defined area.
Now the challenge is that we need to wrap the text within the area that the user has defined. We use the ColumnText class to write the content. Is there anyway we can wrap the text within the area? Posting this query from mobile. So couldn't upload any helpful code.

Change Length of PDF form AcroField using iText

I am filling pdf template using iText api. I am not able proper text in one textfield.
It has boxes like this image.I have to fill one character in each box. When I am trying to set value it taking whole value in initial 3 box only.
Can anybody guide me how can I achieve this ?

iText - how to move down the current contents in a pdf

I have a requirement to add few lines at the top of an existing PDF.
I have done this using a PdfReader and a PdfStamper.
In order to have more space in the page header area, i need to move down the current contents by 1 or 2 lines.
Below is from the forum. but it doesn't solve the issue.
How to insert content in the middle of a page in a PDF using IText
Any suggestions?
-i can not upload the pdf or the image of the pdf because am a new user
Do I interpret your question correctly if I assume that you really want to move down everything on the page and add some lines above?
You can do that by changing the media box (and crop box and what other boxes might be explicitly defined for your page) and then add the few lines on top the same way you already do it now.
You can access those boxes in the respective page dictionary which you can retrieve via the PdfReader. Look up the PDF specification for details on those boxes.
Or do I interpret you incorrectly and you only want to move down some text while keeping existing headers and footers in place? In that case Alexis' answer to the other question you refer to still holds.