-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate accessible PDFs with FOP #64
Comments
Would be interested in others' experience enabling accessibility with AH or XEP. |
@jelovirt, @raducoravu: Are you aware of this? Any insight as to whether this is an OT or FOP issue? |
I had not tried it. I know accessibility in PDF is difficult, and wouldn't be surprised if there's an FOP issue, but can't say where the issue is. If it's an OT issue, and something we can fix given the complexity of the PDF2 design, then I'd treat it as pretty high priority. |
Running a small sample DITA Map with Apache FOP 2.1 and accessibility enabled in the fop.xconf works for me, it complains about a couple of missing alternate text descriptions but the transformation ends succesfully:
|
Tested also with FOP 1.1 (bundled with DITA OT) and publishing my sample with accessibility enabled still works for me. So having a sample DITA project for reproducing the issue posted would help. |
@raducoravu I uploaded a project to Dropbox: https://www.dropbox.com/s/eyc9t6fcgpeo1a1/fop_accessibility_test.tgz?dl=0 The build_both.sh builds the exact same content (edit it to point to your OT) with a default fop.xconf file and with one that has the accessibility flag enabled. The latter fails. Although there are quite a number of source files — such is the nature of interdependency when using common symbols files for a longstanding DITA project — those rendered in the output are relatively few, and the .fo is not unreasonably large to examine. I'll be happy to open an issue in the dita-ot project once we have a better idea why it's failing and believe it's actually an issue with dita-ot and not FOP. Thanks for looking into this! |
I reproduced the issue using your samples and Apache FOP:
Not sure which part of the DITA content triggers this though. Looks like an Apache FOP bug. |
Using FOP 2.1 addresses the scope of the problem described by this ticket (allows PDFs to be built successfully with the accessibility flag enabled). I believe this ticket can be closed. Note that this ticket is not intended to address other issues related to PDF compliance with WCAG or other accessibility standards. |
If upgrading to FOP 2.1 fixes this, let's close it when dita-ot/dita-ot#2399 is merged. |
Resolved by upgrading to FOP 2.1 per dita-ot/dita-ot#2399. |
See #63
When you turn on the accessibility flag in FOP, PDF generation fails. This might be an FOP problem or a problem with the FO the toolkit is generating (I'm not sure yet, but I think it's FOP) but it's reasonable for OT users to want to use this flag and worth documenting that at present it won't work.
I've tested with FOP versions 1.1. and 2.1 with DITA-OT 2.2 and a PDF plugin that makes only minor modifications (its FO generates fine without the accessibility flag). Have not yet tested with other versions of DITA-OT or a purely stock OT build.
The text was updated successfully, but these errors were encountered: