Default Colour on Radio Buttons - forms

I am putting together a simple form for a friend and they want when a button is selected to change from amber, too green.
I have attached PDF to give an idea of what I am looking for. Much like a data validation on excel, but for the life of me I cannot figure out how to do it.
Default: Amber
when clicked: Green

It is certainly possible with PDFs to do that since the appearance of a form field is defined by arbitrary drawing instructions.
However, whether you can do that with a PDF editor wholely depends on the capabilities of the PDF editor.

Related

iTextSharp PDFForm Radio Button format change

We have a library of PDF forms which we're filling with variable content in text, check box and radio button form fields. Since the form is a template, we use the PDFStamper to perform the form fills. Everything is filling and checking appropriately. The problem we have is that the Radio Button controls are set up (in the form) to display a check mark and not the conventional dot within a circle. When filling the form manually with Acrobat reader, the buttons appear as check boxes however; after filling with iText PDFStamper, the resulting PDF radio buttons revert to their conventional style (dot within a circle).
Is this a bug or is it the intended functionality? Is there a work around. We are currently on V5.5.8. I know in previous version(s) the formatting was maintained.
Thanks for any help .

"Segmented Button" with Multi-line Text

I'm not sure exactly what keyword I should be searching, but I wasn't able to find the answer to my problem - I'm new to iOS development so apologies in advanced if I'm not using the correct UI components.
I want to create something like a segmented control (two choices) with multi-line descriptions in them, except I'm not sure if I should be using a segmented control to do so, or to customize a button to create it. The user should be able to select a "choice" and that will switch views and tint the choice not selected depending on the choice the user makes. How exactly would I design this / is this possible?
I've already attempted to modify the segmented control but couldn't get the desired results. I've thought about creating a text box and modifying it to act like a button selector, but wasn't sure if that was the best way. I would love some input, thanks!

How to highlight text in epub like ibooks app

I need to highlight text in epub book,when user selects the text,i can get the text,what the user has selected,but i need to highlight,the text permanently what user selected,thanks,any help will ne appreciated.
There's nothing built in to iOS that will do this. Some broad techniques that might work:
If you're showing the book in a web view, you might be able to wrap that area in a span and style it to create a highlight.
If you're using Core Text, you could draw the highlight in directly, either before or after drawing the text. (Your choice will decide how the highlight affects non-black text.)
You could add a transparent view over the text that draws in the highlight.
As for adding highlight-related items to the selection menu, see this Stack Overflow post. You probably won't be able to get icons in the menu like Apple does, though; that seems to be a private API. You could probably override the whole menu system if you want something closer to Apple's look, but that'll be quite a bit of work.

Adding buttons to PDF documents in iPhone App

I'm writing an iPad app where the user will open PDF documents.
I want to substitute some unique texts with clickable buttons.
ie. if there is a text: "Please click a button" I want to put a button instead (or over) the word "button".
What is the right way to do this?
Thanks!
There is not a straight forward solution to it. What you need to do is following :
1) Search for text 'button'. PDF document text extraction needs to happen before this. Performace depends on how you do this. Some PDF parsers create a marker and while rendering the PDF it indexes the text data of PDF. So searching becomes faster. There can be many more approaches :)
2) Get the bounding box coordinates of the text in screen space.
2) Now draw a platform widget on this coordinate.

Make pdf reader like functionality in my app (highlight the content)

I need a functionality like in the iphone pdf reader.
i want that user select some text content and that content should be highlighted with yellow color.
Currently i am using text view and want to know that can i achieve same functionality in it.
or i have to shift to pdf ?
Please tell that how to achieve that in either of the two.
You can try NSAttributedString-Additions-for-HTML
Take a look at EGOTextView
A drop-in replacement for UITextView that amongst other things supports attributed strings. This would allow you to achieve your aim of selecting text, and then applying a style to that selection such as a yellow highlight.