I have a few text string paragraph in a pdf file, I need to put a button for each paragraph so operator by selecting/highlighting that paragraph and clicking the related button I need to copy that string into clipboard so it can be pasted into another area in another application.
but it does not copy into clipboard... what am I doing wrong?
By making the user select a button, you are telling Acrobat that the button has the focus. "SelectAll" on a button does nothing and unless you are in Prepare Form mode, copying a button does nothing. Additionally, "SelectAll" won't limit the selection to just the paragraph even when done through the menu item.
I suggest you rethink your approach.
I ran it with out SelectAll, Just Copy still my clipboard did not get populated with my selection... I tested both ways before I post it hear.