When rendering PDF or AFP using the conserve-memory and accessibility flag "on" a serialisation error is thrown.
I'm using the "representation of document in intermediate format XML" and get the following error when the CachedRenderPagesModel.java class is trying to save the page to disk.
It then leads to a NullPointerException when later the process tries to retrieve the page.
I saw the same behaviour when the output is set as "pdf" and uses the PDFStructElem.java object even though that's not the mode I'm using that also needs to be fixed.
I'm using fop within a java application but I reproduced using fop binaries:
- name.xml - comes from the fop website
- name2fo.xsl - comes from the fop website
A page citation reference has been added for unresolved references.
- cfg-accessibility.xml - comes from the fop website
2 renderer have been added, PDF and AFP, since that's the ones I'm using.
The <accessibility>true</accessibility> flag has been turned on
fop -xml name.xml -xsl name2fo.xsl -c cfg-accessibility.xml out.pdf -conserve