Discussion:
[iText-questions] Jaws not reading the tagged PDF
Banawalikar, Omkar
2014-12-17 10:49:36 UTC
Permalink
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.
Banawalikar, Omkar
2014-12-23 07:46:39 UTC
Permalink
Any update on this?

Thanks,
Omkar B.

From: Banawalikar, Omkar [mailto:***@informatica.com]
Sent: Wednesday, December 17, 2014 4:20 PM
To: itext-***@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.
iText mailing list
2014-12-23 14:51:00 UTC
Permalink
Post by Banawalikar, Omkar
Any update on this?
You are using iText 5.5.3. This assumes that you either (1.) use iText
in an AGPL context or that you (2) use iText in a commercial context.

If (1.) please give us a link to the complete source code of your project.
If (2.) please create a ticket in the issue tracker for paying customers.
Banawalikar, Omkar
2014-12-23 17:19:55 UTC
Permalink
Hi,

We are trying to test if iText can generate proper tagged pdf files, which can be accessed by JAWS screen reader. If our POC is successful, then we will integrate it with our product and buy the commercial license, else we will have to search for alternative "JAWS Screen Reader accessible PDF generating library".

Thanks,
Omkar B.

From: iText mailing list [mailto:***@1t3xt.info]
Sent: Tuesday, December 23, 2014 8:21 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Jaws not reading the tagged PDF

On 12/23/2014 8:46 AM, Banawalikar, Omkar wrote:
Any update on this?

You are using iText 5.5.3. This assumes that you either (1.) use iText in an AGPL context or that you (2) use iText in a commercial context.

If (1.) please give us a link to the complete source code of your project.
If (2.) please create a ticket in the issue tracker for paying customers.
iText mailing list
2014-12-23 17:27:27 UTC
Permalink
Post by Banawalikar, Omkar
Hi,
We are trying to test if iText can generate proper tagged pdf files,
which can be accessed by JAWS screen reader. If our POC is successful,
then we will integrate it with our product and buy the commercial
license, else we will have to search for alternative “JAWS Screen
Reader accessible PDF generating library”.
Well, the first thing I see is that you don't create the PDF as a PDF/UA
file. This is a typical pre-sales question. Why don't you contact sales
so that they can create a pre-sales ticket on the issue tracker? The
mailing-list has been abandoned by the bulk of iText developers in favor
of StackOverflow as you van read in the intro fo this free book:
http://leanpub.com/itext_so

Loading...