- Compare 2 docx files attached,
- Open a resulted pdf in acrobat pro,
- Enable voice over (cmd + f5),
- Run using key board by ctr+option + arrow buttons,
- Check observations.
Actual:
- By navigate using right arrow, observing some spaces are reading in voice over,
- Unable to navigate header and footer.
code snippet
private void compareDocuments(Document original, Document revised, ComparisonRequest comparisonRequest)
throws Exception {
if (original.hasRevisions())
original.acceptAllRevisions();
if (revised.hasRevisions())
revised.acceptAllRevisions();
original.compare(revised, "Author", new java.util.Date());
// Save the comparison result
updateRevisionProperties(original);
original.save(
comparisonRequest.getOutputFileDirectory() + File.separator + comparisonRequest.getOutputFileName());
PdfSaveOptions saveOptions = new PdfSaveOptions();
// for accessibility
saveOptions.setCompliance(PdfCompliance.PDF_UA_1);
original.save(comparisonRequest.getOutputPDFFileDirectory() + File.separator
+ comparisonRequest.getOutputPDFFileName(), saveOptions);
}
Please find the input and output files below.
accessi_doc_compliance_he_accessi_doc_compliance_h.pdf (272.8 KB)
Accessi_Doc_compliance_header_footer_v2.docx (335.3 KB)
Accessi_Doc_compliance_header_footer.docx (335.3 KB)
P.S. : I can attach video also but there is size limit in chat if you could pass me shareable link I can attache there .