Re: Jaws not reading the tagged PDF
"Banawalikar, Omkar" <[email protected]> Tue, 23 Dec 2014 07:46:39 +0000
| Newsgroups | gmane.comp.java.lib.itext.general |
|---|---|
| Message-ID | <CY1PR0301MB125714EC7030615E351DDCD6D2570@CY1PR0301MB1257.namprd03.prod.outlook.com> |
Any update on this? Thanks, Omkar B. From: Banawalikar, Omkar [mailto:[email protected]] Sent: Wednesday, December 17, 2014 4:20 PM To: [email protected] 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 [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