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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
mukesh  
#1 Posted : Wednesday, November 23, 2016 2:58:32 PM(UTC)
Quote
mukesh

Rank: Member

Groups: Registered
Joined: 7/14/2016(UTC)
Posts: 20
United States

Thanks: 4 times
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

Edited by user Wednesday, November 23, 2016 3:34:50 PM(UTC)  | Reason: attaching images

Paul Rayman  
#2 Posted : Wednesday, November 23, 2016 3:56:03 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
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.
Guest  
#3 Posted : Wednesday, November 23, 2016 4:24:40 PM(UTC)
Quote
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
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  
#4 Posted : Wednesday, November 23, 2016 4:34:42 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
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);


Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.