You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Mark Gibson (Jira)" <ji...@apache.org> on 2025/09/09 22:37:00 UTC

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

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)