Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3179

bounding box on image is not where it should be (PDF/UA)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.9
    • None
    • image/unqualified
    • None
    • Windows 10

    Description

      Our code generates a PDF file with image and bounding box. But the image and bounding box are not on top of each other (see attached example.pdf and open it with axesPDF ).

      If the bounding box is missing, the image cannot be displayed at all or not correctly in alternative representations.

      If you use the axesPDF tool (https://www.axes4.com/de/software-services/axespdf/download), you can see that the bounding box is always placed in the bottom left corner of the respective page.

       

      PAC3 doesn't show any error except white spaces instead of images (screenreader preview) but this is not classified as error.

       

          • Settings:
             
            pom.xml:
            <version.fop>2.9</version.fop>
             
            <dependency>
              <groupId>org.apache.xmlgraphics</groupId>
              <artifactId>fop</artifactId>
              <version>${version.fop}</version>
            </dependency>
             
             
            fop.conf
              <renderers>
                <renderer mime="application/pdf">
                  <version>1.6</version>
                  <pdf-ua-mode>PDF/UA-1</pdf-ua-mode>  
                ...
             
            xsl:
                  <fo:block-container  position="fixed"  left="24mm" top="24mm">
                     <fo:block role="P" position="fixed"  left="24mm" top="24mm">
                        <fo:external-graphic position="fixed"  left="24mm" top="24mm"
                           src="any-image.png" fox:alt-text="xyz">
                        </fo:external-graphic>
                     </fo:block>
                  </fo:block-container>
             

      Attachments

        1. notice.xsl
          3 kB
          Andreas Schlegel
        2. notice.xml
          0.1 kB
          Andreas Schlegel
        3. example.pdf
          8 kB
          Andreas Schlegel
        4. notice.pdf
          44 kB
          João André Gonçalves
        5. any-image.jpg
          39 kB
          João André Gonçalves
        6. screenshot--image-and-bbox-in-axesPDF.png
          48 kB
          Andreas Schlegel

        Activity

          People

            Unassigned Unassigned
            aschlegel Andreas Schlegel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: