Any update on this?

Thanks,
Omkar B.

From: Banawalikar, Omkar [mailto:obanawali...@informatica.com]
Sent: Wednesday, December 17, 2014 4:20 PM
To: itext-questions@lists.sourceforge.net
Cc: Gaikwad, Vivek
Subject: [iText-questions] Jaws not reading the tagged PDF

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.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
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