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: PDFBox detecting checked/unchecked checkboxes
Date Sun, 26 Apr 2015 06:26:08 GMT
Am 26.04.2015 um 07:10 schrieb Andrew Munn:
> What is the best way for PDFBox to detect checked vs unchecked checkboxes
> in forms?  I am thinking use the known x/y coordinates to pull the small
> image of the checkbox out as a BufferedImage then write code that
> determines if the box is filled in.  Some boxes are solid black but some
> just have a 1-pixel wide X in them.  Detecting a solid box would be easy.
> Detecting the X in the middle of an otherwise empty box would be harder.
> Is there some trick to this stuff that I should know?

Yes, "acroform". See the PrintFields example in the source package :-)

Tilman

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


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


Mime
View raw message