[jira] [Created] (FOP-3271) pdf-images: Fail to render accessible pdf image in accessible PDF output when "Artifact" elements present in image

"Mark Gibson (Jira)" <[email protected]>
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
Mark Gibson  created FOP-3271:
---------------------------------

             Summary: pdf-images: Fail to render accessible pdf image in accessible PDF output when "Artifact" elements present in image
                 Key: FOP-3271
                 URL: https://issues.apache.org/jira/browse/FOP-3271
             Project: FOP
          Issue Type: Bug
          Components: renderer/pdf
    Affects Versions: 2.11, 2.10
            Reporter: Mark Gibson 


We have PDF images that are exported direct from Excel (with accessibility enabled).  When rendering an accessible PDF output, the images fail to get rendered in final PDF output.

FOP logs show an index out of bounds exception:
{code:java}
Caused by: java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 6
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
        at java.base/java.util.Objects.checkIndex(Objects.java:385)
        at java.base/java.util.ArrayList.get(ArrayList.java:427)
        at org.apache.fop.pdf.PDFStructElem.addKidInSpecificOrder(PDFStructElem.java:208)
        at org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.createParents(StructureTreeMerger.java:209)
        at org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.createParents(StructureTreeMerger.java:154)
        at org.apache.fop.render.pdf.pdfbox.StructureTreeMerger.copyStructure(StructureTreeMerger.java:89)
        at org.apache.fop.render.pdf.pdfbox.TaggedPDFConductor.handleLogicalStructure(TaggedPDFConductor.java:68)
        at org.apache.fop.render.pdf.pdfbox.AbstractPDFBoxHandler.createStreamForPDF(AbstractPDFBoxHandler.java:114)
        at org.apache.fop.render.pdf.pdfbox.PDFBoxImageHandler.handleImage(PDFBoxImageHandler.java:77)
        ... 62 more{code}
 

Because the following method returns -1 ...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.