Jaws not reading the tagged PDF

"Banawalikar, Omkar" <[email protected]> Wed, 17 Dec 2014 10:49:36 +0000
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <CY1PR0301MB1257158AB7398674605D0904D26D0@CY1PR0301MB1257.namprd03.prod.outlook.com>
Hi,

I am generating a PDF file using iText 5.5.3. The sample java code which I am using for generating the file is as follows:

Rectangle pageConfig = PageSize.A4;
        Document doc = new Document(pageConfig);
        try {
              PdfWriter writer = PdfWriter.getInstance(doc, out);
              writer.setPdfVersion(PdfWriter.PDF_VERSION_1_7);
              String country = Locale.getDefault().getLanguage();
              writer.setTagged();
              doc.addTitle(fileTitle);
              writer.setViewerPreferences(PdfWriter.DisplayDocTitle);
              doc.addLanguage(country);
              writer.createXmpMetadata();
              doc.open();
            for (Iterator iter = this.elements.iterator(); iter.hasNext();) {
                Object elt = iter.next();
                //adding the itext high level blocks to the pdf doc
                this.process(doc, elt);
            }
            doc.close();
        } catch (DocumentException ex) {
            throw new IOException(ex.getMessage());
        }

The PDF file is generated properly with all the tags, but when I try to read the same pdf using JAWS (screen reader software), it is only announcing the title of the file. It does not reads the content of the file. Can you tell us what are we missing in the above code?

PFA the pdf file generated by itext.

Thanks,
Omkar B.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
iText-questions mailing list
[email protected]
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
License_Mgmt_Report_Domain_INW00005159 (10).pdf (application/pdf, 309.1 KB) - not displayed