logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Wednesday, November 23, 2016 4:34:42 PM(UTC)
 
Originally Posted by: Guest Go to Quoted Post

A field, is highlighted.
When you click and enter that specific field (e.g. text field), the highlighted color goes away.


This is standatd behaviour for PDF's acro forms.

Originally Posted by: Guest Go to Quoted Post

You type the text
When you leave the field, the text you entered gets covered by the highlighted text again.
when you enter the field again, the highlighted color disappears and your text becomes visible.
What am I doing wrong?


You should use the half-transparent color
Code:

Viewer1.FormHighlightColor = Color.FromArgb(50, 224, 255, 255);


Guest Posted: Wednesday, November 23, 2016 4:24:40 PM(UTC)
 
Thank you. This works for highlighting the editable fields.

However, it has interesting effect.

A field, is highlighted.
When you click and enter that specific field (e.g. text field), the highlighted color goes away. You type the text
When you leave the field, the text you entered gets covered by the highlighted text again.
when you enter the field again, the highlighted color disappears and your text becomes visible.

What am I doing wrong?

Viewer1.LoadDocument(FileName);
Viewer1.FormHighlightColor = Color.FromRgb(224, 255, 255);
Paul Rayman Posted: Wednesday, November 23, 2016 3:56:03 PM(UTC)
 
PdfViewer.FormHighlightColor Property at any time ( https://pdfium.patagames...99-63a6-13c80e90b755.htm )
or PdfViewer.FillForms.SetHighlightColor Method ( https://pdfium.patagames...e9-47d5-fe70eaf8c9d6.htm )
after document was loaded by the viewer.
mukesh Posted: Wednesday, November 23, 2016 2:58:32 PM(UTC)
 
When opening an acrobat form in viewer, there doesn't seem to be a decent theme or color style to visually distinguish between a field versus some read only text.
Is there any way to implement change of colors for editable fields or themes or styles?

(Please see the images of screenshot between Patagames Viewer and Adobe Reader. The blue background behind editable fields makes a good user experience)
AdobeReader.pngPatagamesViewer.png