When I copy and paste a text of size 10 in a text field, the text is copied in size 12.
Someone has ever been in this situation?
How can I copy a text while retaining the right format?
I you set the text field to a Field Format (on the Field tab of the Object Palette) to rich text, then the value pasted will retain the source font size. Otherwise it will change to whatever has been set for that field.
The text that i copy is an example text, i try all method to copy/past the text "from text to textfield" or "from textfield to textfield" with "Rich Text" and the results is the same. This is the link to my sample: ExpireBox | NewForm1.xdp
Seems we were talking about two different things, I thought you were using a text field but seems you are using a static text object. So ignore all previous comments.
But you should still be able to paste rich text into a text object in the LiveCycle Designer design view. I have updated your sample https://sites.google.com/site/livecycledesignercookbooks/home/NewForm1.updated.xdp?attredirects=0&d=... with the text I have pasted from this Word document https://sites.google.com/site/livecycledesignercookbooks/home/FontSample.docx?attredirects=0&d=1
Still not sure I understand what you are trying to do.
It seems that when you are copying static text from the PDF and pasting it into the text field the font size is being increased by something like 20%. Is that the problem you are facing. I must say I haven't come across it as the main copy/paste I've had to deal with is from MS Word, which does seem to work. Even if you past from the PDF to a MS Word document it gets enlarged as well.
So, sorry to say after a couple of weeks I can't help.