Question regarding highlighting fields

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

jps8834
User
Posts: 15
Joined: Tue Jan 27, 2009 2:38 pm

Question regarding highlighting fields

Post by jps8834 »

Hello again!

I was wondering if anyone knew of a way to only highlight certain fields on a form. We have some PDFs in which we populate certain fields based on information they give us, but we need them to fill in some of the other fields.

I was thinking that there might be a way to change a field to a "Required field" so that I could set only to highlight required fields, but there doesn't seem to be any documented way to do this.

Anyway... if there is any functionality that people know of to highlight only certain fields, that would be awesome.

Thanks for all your help!

(I can include a zip file of a PDF with fields if people would like)
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Question regarding highlighting fields

Post by Corwin - Tracker Sup »

PDF-XChange Viewer doesn't support anything like this..
You can choose what type of fields you want to highlight (such as Textboxses, Listboxses, Radiobuttons etc.) - that’s all for now.
jps8834
User
Posts: 15
Joined: Tue Jan 27, 2009 2:38 pm

Re: Question regarding highlighting fields

Post by jps8834 »

Ok. Would there be any way to flatten only certain fields, or lock fields so that they cannot edit the ones we fill automatically?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Question regarding highlighting fields

Post by Corwin - Tracker Sup »

You can use Java Script to lock fields in the PDF document.

Code: Select all

var f = this.getField("f1_01(0)");
f.readonly = false
where f1_01(0) is name of the field.
Also you can change field colour, so it will looks like some type of highlight.
var f = this.getField("f1_01(0)");
f.fillColor = color.yellow;
To run JS with PDF-XChange viewer you can use RunJavaScript function.

For more information about JS in PDF please look at the Acrobat JavaScript Object
Specification.