pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Draw a colored box around a PDField?
Date Wed, 05 Aug 2015 17:20:22 GMT
Am 05.08.2015 um 18:00 schrieb Kevin Ternes:
> For a given document and field name, it seems like a simple matter to draw a colored
box around the contents of the field.  But I cannot figure out how to do it.  So far, I have
the following.  But where do I go from here?
>
> PDDocumentCatalog catalog = pdDocument.getDocumentCatalog();
> PDAcroForm pdAcroForm = catalog.getAcroForm();
> PDField pdField = pdAcroForm.getField(fieldName);
> COSDictionary pdFieldDictionary = pdField.getDictionary();
>
> PDAnnotationTextMarkup pdatMarkup = new PDAnnotationTextMarkup(PDAnnotationSquareCircle.SUB_TYPE_SQUARE);
> pdatMarkup.setColour(borderPdGamma);
>

see the reply here:
http://qnalist.com/questions/4842300/form-elements-not-visible



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message