What version of PDF/A are you referring to since the rules for annotation
appearances changed between PDF/A-1 and PDF/A-2 (and –3)?
I would assume that "Ja" in the export values.
Leonard
From: Thomas Büngener <thomas.buenge...@is2.de<mailto:thomas.buenge...@is2.de>>
Reply-To: Post here
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Date: Friday, February 21, 2014 7:26 AM
To: Post here
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] Handling PDF/A Checkboxes with a single appearance
Hello,
I have checkboxes that have only one appearance state. I.e. AP->N not being a
dictionary but
a stream containing only BBox. As I understand this construktion seems Ok, as
in PDF/A AP->N must not
be a dictionary and the „Off“ state can be left away (this is because PDF/A
does not allow multiple appearance states).
acroFields.getAppearanceStates returns an empty Array in this case.
The AS (Appearance state) is „Off“ as long as the Chekbox is unticked.
When I tick it in Acrobat and save the file, the AS is set to „Ja“.
If i use AcroFileds.setField this does not work because the metod isInAP which
is used inside
setField returns false.
Now I tried to set the AS value directly to „Ja“ and this works!
The Value „Ja“ is show as „export value“ for this field in Acrobat Pro and, as
stated before,
Acrobat writes „Ja“ to AS when I tick the box and save the file.
Now my remaining problem ist he following:
I have no idea where Acrobat takes this ticked-value („Ja“) from.
I cannot find it anywhere inside the file, nor am I able to retrieve it
programatically.
The value „Off“ seems to be fixed (according to Standards), but the value „Ja“
is not.
Does anybody know, how this „Ja“ value can be found inside the pdf?
I‘m using iText 2.1.7 right now, but I also tried using latest v5 to solve the
problem.
I am not the producer oft he PDF so i cannot modify it in any way and the PDF/A
conformance
must be retained. So I cannot change the appearance(s) oft he checkbox.
I can provide a reduced version of the problematic file (35kb) if that might be
helpful.
sincerly
Thomas
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
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