Its not quite as simple as the highlight fields button... But questioning
my sanity has pointed the way to a solution!
The fields that are highlighted are supposed to be blank. When I was
adding the AcroFieldProperties object I was defining the background color.
But since these fields did not have a value in them they were not getting
the appearance update on load. Apparently I have to have a value in the
fields for the background to display.
AcroFieldProperties shadedField = new
AcroFieldProperties(shadedFieldName.trim());
shadedField.setBackgroundColor(shadeColor);
I have to add a space to the field and then the reader will detect it and
update appearance. Ideally an empty string would be preferred, but I can
live with a space.
Added >>>>>>>> shadedField.setFieldValue(" ");
Now all the fields are filled and display/print in yellow as required.
Thanks for your assistance
Ken Bogart | Ameritas | IT Consultant
1876 Waycross Road, Cincinnati, OH 45240 | p: 513-595-2299 | f:
513-595-2518 | kbog...@ameritas.com
From: iText Info <i...@1t3xt.info>
To: Post all your questions about iText here
<itext-questions@lists.sourceforge.net>
Date: 12/09/2011 10:35 AM
Subject: Re: [iText-questions] PDF Field background color not
displayed or printed
Op 9/12/2011 16:28, Leonard Rosenthol schreef:
> The only reason that it doesn't display is that you have the "Hilight
> existing fields" option turned on in Adobe Acrobat/Reader. If you
> turn that off (the button in the purple bar at the top of the window)
> then the yellow displays just fine.
A typical case of overlooking the obvious.
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point
of
discussion for anyone considering optimizing the pricing and packaging
model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php