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

[PATCH] Acessibility: Invalid PDF page content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: All
      Platform: All
    • 50986

    Description

      FOP uses an incorrect order of ET/EMC operands in some cases:
      BCD
      BT
      [...]
      EMC
      ET
      Correct would be:
      BCD
      BT
      [...]
      ET
      EMC
      [The last open element must be closed first]

      diff --git a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
      — a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
      +++ b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java
      @@ -270,10 +270,10 @@ public class PDFContentGenerator {
      /** Indicates the end of a text object. */
      protected void endTextObject() {
      if (textutil.isInTextObject()) {
      + textutil.endTextObject();
      if (this.inMarkedContentSequence)

      { endMarkedContentSequence(); }
      • textutil.endTextObject();
        }
        }

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            martin.koegler@brz.gv.at Martin K
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: