Righto, I'll get right on that.   ;-)

Is there not a way to tag an object in any way so that I can pull it later?
On Feb 13, 2013 11:46 AM, "Leonard Rosenthol" <lrose...@adobe.com> wrote:

> Jason, using the Alt for an image is NOT the right way to accomplish what
> you want.
>
> You should just put a custom key of your own choosing on each Xobject that
> you wish to "mark".  This would be a second class key (as described in ISO
> 32000-1:2008) and you'll need to register your second class extension with
> ISO.  But that's just formality…
>
> Leonard
>
> From: Jason Kissinger <ja...@jasonkissinger.com>
> Reply-To: Post here <itext-questions@lists.sourceforge.net>
> Date: Wednesday, February 13, 2013 12:18 PM
> To: Post here <itext-questions@lists.sourceforge.net>
> Subject: [iText-questions] Tagging content
>
> 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
>
------------------------------------------------------------------------------
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