You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/04/27 13:07:49 UTC

DO NOT REPLY [Bug 47104] New: can not add Alt text for images

https://issues.apache.org/bugzilla/show_bug.cgi?id=47104

           Summary: can not add Alt text for images
           Product: Fop
           Version: 0.95
          Platform: PC
               URL: http://wiki.apache.org/xmlgraphics-fop/PDF_Accessibili
                    ty
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: images
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: vinayak.patil1@gmail.com
                CC: vinayak.patil1@gmail.com


Hi,
 As we want to add acessiblity to PDF, I have to put alt text for images in
pdf. If this is not a bug then how can i add alt text to images in PDF.
I made change in code as well as in fo document but now getting exception.

Changes made in fo document.

   <fo:external-graphic src="url('servlet-context:/images/header.jpg')"
content-width="4cm" content-height="3cm"   fox:alt-text="test test test"      
scaling="uniform"/>

Change made in java class.
//Add accessibility to pdf

            foUserAgent.getRendererOptions().put("accessibility",
Boolean.TRUE); 

  Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF+ ";mode=painter",
foUserAgent, out);

Stack trace:

Caused by: org.xml.sax.SAXParseException: The prefix "fox" for attribute
"fox:alt-text" associated with an element type "fo:external-graphic" is not
bound.
    at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:354)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47104] can not add Alt text for images

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47104

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:52:50 UTC ---
batch transition to closed remaining pre-FOP1.0 resolved bugs

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47104] can not add Alt text for images

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47104


Max Berger <ma...@berger.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
           Severity|blocker                     |enhancement




--- Comment #1 from Max Berger <ma...@berger.name>  2009-04-27 11:43:34 PST ---
Dear vinayak,

please read about XML Namespaces in general, and this page in particular:

http://xmlgraphics.apache.org/fop/0.95/extensions.html#fox-namespace

I am marking this bug as invalid - feel free to re-open if it is a real bug.


Max

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.