Would the new accessibility api be appropriate for tagging an /XObject (ie
image) so that it can later be retrieved by test automation?  Or is there
something else?

I built 5.4.0 from svn, and added accessibleAttribute to image:

image.setAccessibleAttribute(PdfName.ALT, new PdfString("image1"));

but then don't see anything new when I open it up (using rups and hunting
around with my own code).

We embed multiple jpg and svg, which we generate, into our documents.  And
then have junit tests that try to find the object and assert content is as
expected.  I'm able to parse out the svg/jpg from pdf no problem, but am
not able to identify which instance I have.  Would like to tag them during
pdf generation so that I can extract by that tag during pdf testing.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
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

Reply via email to